README.md in logstasher-0.2.5 vs README.md in logstasher-0.2.8

- old
+ new

@@ -53,20 +53,22 @@ ### Configure your `<environment>.rb` e.g. `development.rb` # Enable the logstasher logs for the current environment config.logstasher.enabled = true - # This line is optional if you do not want to supress app logs in your <environment>.log - config.logstasher.supress_app_log = false + # This line is optional if you do not want to suppress app logs in your <environment>.log + config.logstasher.suppress_app_log = false ## Adding custom fields to the log Since some fields are very specific to your application for e.g. *user_name*, so it is left upto you, to add them. Here's how to add those fields to the logs: # Create a file - config/initializers/logstasher.rb if LogStasher.enabled LogStasher.add_custom_fields do |fields| + # This block is run in application_controller context, + # so you have access to all controller methods fields[:user] = current_user && current_user.mail fields[:site] = request.path =~ /^\/api/ ? 'api' : 'user' # If you are using custom instrumentation, just add it to logstasher custom fields LogStasher.custom_fields << :myapi_runtime