module Logging::RailsCompat

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 Logging::Logger class when the ActiveSupport gem is present.

Public Instance Methods

formatter() click to toggle source

A no-op implementation of the `formatter` method.

# File lib/logging/rails_compat.rb, line 12
def formatter; end
silence( *args ) { |self| ... } click to toggle source

A no-op implementation of the silence method. Setting of log levels should be done during the Logging 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 detailed discussion of the issue.

# File lib/logging/rails_compat.rb, line 21
def silence( *args )
  yield self
end