Class: Relaton::Logger::Configuration
- Inherits:
-
Object
- Object
- Relaton::Logger::Configuration
- Defined in:
- lib/relaton/logger/config.rb
Instance Attribute Summary collapse
-
#logger_pool ⇒ Array<Relaton::Logger::Log>
List of loggers.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_pool ⇒ Array<Relaton::Logger::Log>
Returns List of loggers.
14 15 16 |
# File 'lib/relaton/logger/config.rb', line 14 def logger_pool @logger_pool end |