Module: CiLogger::Registry

Defined in:
lib/ci_logger/registry.rb

Class Method Summary collapse

Class Method Details

.clearObject



13
14
15
# File 'lib/ci_logger/registry.rb', line 13

def clear
  @loggers.each(&:clear)
end

.debugObject



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

.syncObject



9
10
11
# File 'lib/ci_logger/registry.rb', line 9

def sync
  @loggers.each(&:sync)
end