Module: CiLogger::Registry
- Defined in:
- lib/ci_logger/registry.rb
Class Method Summary collapse
Class Method Details
.clear ⇒ Object
13 14 15 |
# File 'lib/ci_logger/registry.rb', line 13 def clear @loggers.each(&:clear) end |
.debug ⇒ Object
17 18 19 |
# File 'lib/ci_logger/registry.rb', line 17 def debug(...) @loggers.each { _1.debug(...) } end |
.register(logger) ⇒ Object
4 5 6 7 |
# File 'lib/ci_logger/registry.rb', line 4 def register(logger) @loggers ||= [] @loggers << logger end |
.sync ⇒ Object
9 10 11 |
# File 'lib/ci_logger/registry.rb', line 9 def sync @loggers.each(&:sync) end |