Class: LoggerFacade::Plugins::Console

Inherits:
Base
  • Object
show all
Defined in:
lib/logger_facade/plugins/console.rb

Instance Attribute Summary

Attributes inherited from Base

#config, #level, #name

Instance Method Summary collapse

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