Class: Hickory::Logger
- Inherits:
-
Logger
- Object
- Logger
- Hickory::Logger
- 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
- #flush ⇒ Object
-
#initialize(*args) ⇒ Logger
constructor
A new instance of Logger.
- #tagged(*tags) ⇒ Object
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
#flush ⇒ Object
44 45 46 47 |
# File 'lib/hickory/logger.rb', line 44 def flush super if defined?(super) end |
#tagged(*tags) ⇒ Object
40 41 42 |
# File 'lib/hickory/logger.rb', line 40 def tagged(*) formatter.tagged(*) { yield self } end |