Module: Lamian::LoggerExtension

Defined in:
lib/lamian/logger_extension.rb

Overview

Provides extension to loggers, which should be teed to lamian

Instance Method Summary collapse

Instance Method Details

#addObject

Add is a single entry point for ::Logger.debug,info,..



8
9
10
11
# File 'lib/lamian/logger_extension.rb', line 8

def add(...)
  Logger.current.add(...)
  super
end

#logObject

log is an alis for add and should also be prepended



15
16
17
18
# File 'lib/lamian/logger_extension.rb', line 15

def log(...)
  Logger.current.add(...)
  super
end