Module: Lumberjack::TaggedLogging

Defined in:
lib/lumberjack/tagged_logging.rb

Overview

Monkey patch for ActiveSupport::TaggedLogger so it doesn’t blow up when a Lumberjack logger is trying to be wrapped. This module will be automatically included in ActiveSupport::TaggedLogger if activesupport is already loaded.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
# File 'lib/lumberjack/tagged_logging.rb', line 9

def included(base)
  base.singleton_class.send(:prepend, ClassMethods)
end