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
-
#add(*args, &block) ⇒ Object
Add is a single entry point for ::Logger.debug,info,...
-
#log(*args, &block) ⇒ Object
log is an alis for add and should also be prepended.
Instance Method Details
#add(*args, &block) ⇒ Object
Add is a single entry point for ::Logger.debug,info,..
8 9 10 11 |
# File 'lib/lamian/logger_extension.rb', line 8 def add(*args, &block) Logger.current.add(*args, &block) super end |
#log(*args, &block) ⇒ Object
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(*args, &block) Logger.current.add(*args, &block) super end |