Module: RailsLogstasher
- Defined in:
- lib/rails-logstasher.rb,
lib/rails-logstasher/event.rb,
lib/rails-logstasher/logger.rb,
lib/rails-logstasher/railtie.rb,
lib/rails-logstasher/version.rb,
lib/rails-logstasher/rack/logger.rb,
lib/rails-logstasher/tagged_logging.rb,
lib/rails-logstasher/action_view/log_subscriber.rb,
lib/rails-logstasher/active_record/log_subscriber.rb,
lib/rails-logstasher/active_resource/log_subscriber.rb,
lib/rails-logstasher/action_controller/log_subscriber.rb
Defined Under Namespace
Modules: ActionController, ActionView, ActiveRecord, ActiveResource, Rack, TaggedLogging Classes: Event, IncompatibleLogger, Logger, Railtie
Constant Summary collapse
- VERSION =
"0.1.4"
Class Method Summary collapse
-
.config ⇒ Object
Options: :entry_processor - a Proc to custom handle entries right before they are written to the log.
- .log_entries ⇒ Object
Class Method Details
.config ⇒ Object
Options: :entry_processor - a Proc to custom handle entries right before they are written to the log.
RailsLogstasher.config[:entry_processor] = Proc.new {|entry| ... do stuff with entry ...}
20 21 22 |
# File 'lib/rails-logstasher.rb', line 20 def self.config @@config ||= {} end |
.log_entries ⇒ Object
12 13 14 |
# File 'lib/rails-logstasher.rb', line 12 def self.log_entries @@events ||= {} end |