Class: Progstr::Logger

Inherits:
RubyLogger
  • Object
show all
Defined in:
lib/progstr/logger.rb

Direct Known Subclasses

RailsLogger

Instance Method Summary collapse

Constructor Details

#initialize(source_name = "Unknown") ⇒ Logger

Returns a new instance of Logger.



7
8
9
10
11
12
# File 'lib/progstr/logger.rb', line 7

def initialize(source_name = "Unknown")
  device = LoggerDevice.new(source_name)
  super(device)

  @formatter = device.formatter
end