module Evrone::CI::Common::TaggedLogging

Public Class Methods

new(logger) click to toggle source
# File lib/evrone/ci/common/tagged_logging.rb, line 59
def self.new(logger)
  # Ensure we set a default formatter so we aren't extending nil!
  logger.formatter = Formatter.new
  logger.extend(self)
end

Public Instance Methods

flush() click to toggle source
Calls superclass method
# File lib/evrone/ci/common/tagged_logging.rb, line 75
def flush
  clear_tags!
  super if defined?(super)
end
tagged(*tags) { |self| ... } click to toggle source
# File lib/evrone/ci/common/tagged_logging.rb, line 71
def tagged(*tags)
  formatter.tagged(*tags) { yield self }
end