Class: Relaton::Logger::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/relaton/logger/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



16
17
18
19
# File 'lib/relaton/logger/config.rb', line 16

def initialize
  @logger_pool ||= Pool.new
  @logger_pool[:default] = Log.new($stderr, levels: %i[info warn error fatal])
end

Instance Attribute Details

#logger_poolArray<Relaton::Logger::Log>

Returns List of loggers.

Returns:



14
15
16
# File 'lib/relaton/logger/config.rb', line 14

def logger_pool
  @logger_pool
end