Method: Filum::Logger#initialize

Defined in:
lib/filum/logger.rb

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

Returns a new instance of Logger.



9
10
11
12
13
14
15
16
17
# File 'lib/filum/logger.rb', line 9

def initialize(logfile, options = {})
  @timings = {}
  @logfile = logfile
  create_log_directory

  super(logfile, shift_age='daily')
  self.formatter = Filum::LogFormatter.new(options)
  self.level = Logger::INFO
end