Class: Chillout::PrefixedLogger
- Inherits:
-
Object
- Object
- Chillout::PrefixedLogger
- Extended by:
- Forwardable
- Defined in:
- lib/chillout/prefixed_logger.rb
Instance Attribute Summary collapse
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
Instance Method Summary collapse
-
#initialize(prefix, logger) ⇒ PrefixedLogger
constructor
A new instance of PrefixedLogger.
Constructor Details
#initialize(prefix, logger) ⇒ PrefixedLogger
Returns a new instance of PrefixedLogger.
9 10 11 12 |
# File 'lib/chillout/prefixed_logger.rb', line 9 def initialize(prefix, logger) @prefix = prefix @logger = logger end |
Instance Attribute Details
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
7 8 9 |
# File 'lib/chillout/prefixed_logger.rb', line 7 def prefix @prefix end |