README.md in rails-logstasher-0.1.1 vs README.md in rails-logstasher-0.1.2
- old
+ new
@@ -44,9 +44,12 @@
class Application < Rails::Application
# Set a logger compatible with the standard ruby logger to be used by RailsLogstasher
config.logger = RailsLogstasher::Logger.new(Rails.root.join('log',"#{Rails.env}.log").to_s)
+ # Optionally process log entries before they are written to the log
+ RailsLogstasher.config[:entry_processor] = Proc.new {|entry| ... do stuff with entry...}
+
end
end
```
## Logstash Configuration