Class: LoggerFacade::Plugins::Console
- Defined in:
- lib/logger_facade/plugins/console.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Console
constructor
A new instance of Console.
Methods inherited from Base
#debug, #error, #info, #is_debug, #trace, #warn
Constructor Details
#initialize(config = {}) ⇒ Console
Returns a new instance of Console.
7 8 9 10 11 12 13 14 15 |
# File 'lib/logger_facade/plugins/console.rb', line 7 def initialize(config = {}) defaults = { level: :info, time_format: '%y-%M-%d %H:%M:%S', message_format: '%time | %level | %logger - %msg' } config = defaults.merge(config) super("LoggerFacade::Plugins::Console", config) end |