Class: Dumper::Utility::SlimLogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/dumper/utility/log.rb

Defined Under Namespace

Classes: SlimFormatter

Instance Method Summary collapse

Constructor Details

#initialize(logdev, shift_age = 0, shift_size = 1048576) ⇒ SlimLogger

Returns a new instance of SlimLogger.



27
28
29
30
31
32
# File 'lib/dumper/utility/log.rb', line 27

def initialize(logdev, shift_age = 0, shift_size = 1048576)
  super
  self.formatter = SlimFormatter.new
  self.formatter.datetime_format = "%Y-%m-%dT%H:%M:%S"
  self.level = Logger::INFO
end