Module: LogStashLogger::TaggedLogging

Defined in:
lib/logstash-logger/tagged_logging.rb

Overview

Shamelessly copied from ActiveSupport::TaggedLogging

Defined Under Namespace

Modules: Formatter

Instance Method Summary collapse

Instance Method Details

#flushObject



8
9
10
11
# File 'lib/logstash-logger/tagged_logging.rb', line 8

def flush
  formatter.clear_tags!
  super if defined?(super)
end

#tagged(*tags) ⇒ Object



4
5
6
# File 'lib/logstash-logger/tagged_logging.rb', line 4

def tagged(*tags)
  formatter.tagged(*tags) { yield self }
end