Class: Relaton::Logger::Pool

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/relaton/logger/pool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePool

Returns a new instance of Pool.



8
9
10
# File 'lib/relaton/logger/pool.rb', line 8

def initialize
  @loggers = {}
end

Instance Attribute Details

#loggersObject

Returns the value of attribute loggers.



6
7
8
# File 'lib/relaton/logger/pool.rb', line 6

def loggers
  @loggers
end

Instance Method Details

#truncateObject



19
20
21
22
# File 'lib/relaton/logger/pool.rb', line 19

def truncate
  @loggers.each { |_, logger| logger.truncate }
  nil
end

#unknown(message = nil, progname = nil, **args, &block) ⇒ Object



12
13
14
15
# File 'lib/relaton/logger/pool.rb', line 12

def unknown(message = nil, progname = nil, **args, &block)
  @loggers.each { |_, logger| logger.send(__callee__, message, progname, **args, &block) }
  nil
end