Class: Relaton::Logger::Pool
- Inherits:
-
Object
- Object
- Relaton::Logger::Pool
- Extended by:
- Forwardable
- Defined in:
- lib/relaton/logger/pool.rb
Instance Attribute Summary collapse
-
#loggers ⇒ Object
Returns the value of attribute loggers.
Instance Method Summary collapse
-
#initialize ⇒ Pool
constructor
A new instance of Pool.
- #truncate ⇒ Object
- #unknown(message = nil, progname = nil, **args, &block) ⇒ Object
Constructor Details
#initialize ⇒ Pool
Returns a new instance of Pool.
8 9 10 |
# File 'lib/relaton/logger/pool.rb', line 8 def initialize @loggers = {} end |
Instance Attribute Details
#loggers ⇒ Object
Returns the value of attribute loggers.
6 7 8 |
# File 'lib/relaton/logger/pool.rb', line 6 def loggers @loggers end |
Instance Method Details
#truncate ⇒ Object
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( = nil, progname = nil, **args, &block) @loggers.each { |_, logger| logger.send(__callee__, , progname, **args, &block) } nil end |