Class: Hickory::Logger

Inherits:
Logger
  • Object
show all
Includes:
ActiveSupport::LoggerSilence, ActiveSupport::LoggerThreadSafeLevel
Defined in:
lib/hickory/logger.rb

Constant Summary collapse

SEVERITIY_LABELS =
%w(TRACE DEBUG INFO WARN ERROR FATAL UNKNOWN)

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Logger

Returns a new instance of Logger.



14
15
16
17
# File 'lib/hickory/logger.rb', line 14

def initialize(*args)
  super
  self.formatter = Formatters::Simple.new
end

Instance Method Details

#flushObject



44
45
46
47
# File 'lib/hickory/logger.rb', line 44

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

#tagged(*tags) ⇒ Object



40
41
42
# File 'lib/hickory/logger.rb', line 40

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