Class: Embork::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/embork/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(stream, mode = :default) ⇒ Logger

Returns a new instance of Logger.



5
6
7
8
9
10
11
# File 'lib/embork/logger.rb', line 5

def initialize(stream, mode = :default)
  super(stream)
  @mode = mode
  if @mode == :simple
    self.formatter = simple_formatter
  end
end