README.md in sidekiq-logstash-1.1.0 vs README.md in sidekiq-logstash-1.2.0
- old
+ new
@@ -66,9 +66,14 @@
Sidekiq::Logstash.configure do |config|
# filter_args will allow you to filter the job arguments removing
# it works just like rails params filtering (http://guides.rubyonrails.org/action_controller_overview.html#parameters-filtering)
config.filter_args << 'foo'
+ # by default, the "job started" logs are omitted from the logs
+ # to have one-line logs for each log (following Lograge), but you can
+ # enable job start logs by setting the following flag:
+ config.job_start_log = true
+
# custom_option is a Proc that will be called before logging the payload, allowing you to add fields to it
config.custom_options = lambda do |payload|
payload['my_custom_field'] = 'my_custom_value'
end
end