Module: Logsly::Logging182::RailsCompat
- Defined in:
- lib/logsly/logging182/rails_compat.rb
Overview
Rails compatibility module.
The ActiveSupport gem adds a few methods to the default Ruby logger, and some Rails extensions expect these methods to exist. Those methods are implemented in this module and included in the Logsly::Logging182::Logger class when the ActiveSupport gem is present.
Instance Method Summary collapse
-
#formatter ⇒ Object
A no-op implementation of the
formatter
method. -
#silence(*args) {|_self| ... } ⇒ Object
A no-op implementation of the
silence
method.
Instance Method Details
#formatter ⇒ Object
A no-op implementation of the formatter
method.
16 |
# File 'lib/logsly/logging182/rails_compat.rb', line 16 def formatter; end |
#silence(*args) {|_self| ... } ⇒ Object
A no-op implementation of the silence
method. Setting of log levels should be done during the Logsly::Logging182 configuration. It is the author’s opinion that overriding the log level programmatically is a logical error.
Please see github.com/TwP/logging/issues/11 for a more detail discussion of the issue.
26 27 28 |
# File 'lib/logsly/logging182/rails_compat.rb', line 26 def silence( *args ) yield self end |