Class: UU::Log
Instance Attribute Summary collapse
-
#loggers ⇒ Object
Returns the value of attribute loggers.
Attributes included from LogContext
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Log
constructor
A new instance of Log.
Methods included from Loggable
Methods included from LogContext
Constructor Details
#initialize ⇒ Log
Returns a new instance of Log.
12 13 14 15 16 17 |
# File 'lib/uu/log.rb', line 12 def initialize @loggers = { stderr: LoggerStderr.new(self), fluent: LoggerFluent.new(self), } end |
Instance Attribute Details
#loggers ⇒ Object
Returns the value of attribute loggers.
19 20 21 |
# File 'lib/uu/log.rb', line 19 def loggers @loggers end |
Class Method Details
.instance ⇒ Object
8 9 10 |
# File 'lib/uu/log.rb', line 8 def self.instance Thread.current[:logger] ||= new end |