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 message 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, tags: nil) ⇒ Configuration

Returns a new instance of Configuration.



12
13
14
15
16
# File 'lib/hubbado/log/configuration.rb', line 12

def initialize(level: nil, tags: nil)
  @loggers = []
  self.level = level || DEFAULT_LEVEL
  self.tags = tags
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

#tagsObject

Returns the value of attribute tags.



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

def tags
  @tags
end