Module: LogStashLogger::MultiLogger::TaggedLogging

Included in:
LogStashLogger::MultiLogger
Defined in:
lib/logstash-logger/multi_logger.rb

Instance Method Summary collapse

Instance Method Details

#flushObject



125
126
127
128
129
130
# File 'lib/logstash-logger/multi_logger.rb', line 125

def flush
  @loggers.each do |logger|
    logger.formatter.clear_tags!
  end
  super if defined?(super)
end

#tagged(*tags) ⇒ Object



119
120
121
122
123
# File 'lib/logstash-logger/multi_logger.rb', line 119

def tagged(*tags)
  @loggers.each do |logger|
    logger.formatter.tagged(*tags) { yield self }
  end
end