Class: Hubbado::Log::Configuration
- Inherits:
-
Object
- Object
- Hubbado::Log::Configuration
- Defined in:
- lib/hubbado/log/configuration.rb
Constant Summary collapse
- DEFAULT_LEVEL =
Tracing is off until somebody asks for it, which is what lets a debug line be written for a human watching one run without it also reaching every unattended log.
:info
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
-
#loggers ⇒ Object
Returns the value of attribute loggers.
Instance Method Summary collapse
-
#initialize(level: nil) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(level: nil) ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 |
# File 'lib/hubbado/log/configuration.rb', line 11 def initialize(level: nil) @loggers = [] self.level = level || DEFAULT_LEVEL end |
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level.
9 10 11 |
# File 'lib/hubbado/log/configuration.rb', line 9 def level @level end |
#loggers ⇒ Object
Returns the value of attribute loggers.
8 9 10 |
# File 'lib/hubbado/log/configuration.rb', line 8 def loggers @loggers end |