Class: Core::Logger

Inherits:
Logger show all
Includes:
Singleton
Defined in:
lib/svcbase/corelogger.rb

Overview

our logger

Instance Method Summary collapse

Constructor Details

#initializeLogger

Returns a new instance of Logger.



12
13
14
15
# File 'lib/svcbase/corelogger.rb', line 12

def initialize
  super($stdout)
  self.formatter = Core::Formatters::Log.new
end

Instance Method Details

#none(*_unused) ⇒ Object



17
18
19
20
21
22
# File 'lib/svcbase/corelogger.rb', line 17

def none(*_unused)
  # intentional no-op.  Sequel will log things at a defined log level
  # but we want to be able to log long-running queries without logging
  # ALL of them.  this gives us a method to /dev/zero messages for fast
  # queries
end