Module: Lumberjack::TaggedLogging::ClassMethods

Defined in:
lib/lumberjack/tagged_logging.rb

Instance Method Summary collapse

Instance Method Details

#new(logger) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/lumberjack/tagged_logging.rb', line 15

def new(logger)
  if logger.is_a?(Lumberjack::Logger)
    logger = logger.tagged_logger! unless logger.respond_to?(:tagged)
    logger
  else
    super
  end
end