Class: Chillout::PrefixedLogger

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/chillout/prefixed_logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prefix, logger) ⇒ PrefixedLogger

Returns a new instance of PrefixedLogger.



11
12
13
14
# File 'lib/chillout/prefixed_logger.rb', line 11

def initialize(prefix, logger)
  @prefix = prefix
  @logger = logger
end

Instance Attribute Details

#prefixObject (readonly)

Returns the value of attribute prefix.



9
10
11
# File 'lib/chillout/prefixed_logger.rb', line 9

def prefix
  @prefix
end