Class: Ichnite::Logger
- Inherits:
-
Object
- Object
- Ichnite::Logger
- Defined in:
- lib/ichnite/logger.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(logger) ⇒ Logger
constructor
A new instance of Logger.
- #log(event, opts = {}) ⇒ Object
Constructor Details
#initialize(logger) ⇒ Logger
Returns a new instance of Logger.
5 6 7 8 |
# File 'lib/ichnite/logger.rb', line 5 def initialize(logger) @logger = logger @formatter = Formatters::KeyValue.new end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
3 4 5 |
# File 'lib/ichnite/logger.rb', line 3 def logger @logger end |