Method: Thoth::Logger#initialize

Defined in:
lib/thoth/logger.rb

#initialize(outputs, options = {}) ⇒ Logger

Returns a new instance of Logger.



6
7
8
9
10
# File 'lib/thoth/logger.rb', line 6

def initialize(outputs, options={})
  @outputs = [outputs].flatten
  @timestamp_format = options.fetch(:timestamp_format, "%d/%b/%Y:%H:%M:%S %z")
  @timestamp_key = options.fetch(:timestamp_key, :time)
end