Class: Hubbado::Log::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#levelObject

Returns the value of attribute level.



9
10
11
# File 'lib/hubbado/log/configuration.rb', line 9

def level
  @level
end

#loggersObject

Returns the value of attribute loggers.



8
9
10
# File 'lib/hubbado/log/configuration.rb', line 8

def loggers
  @loggers
end