Method: LogKernel::Logger#initialize

Defined in:
lib/logutils/logger.rb

#initializeLogger

Returns a new instance of Logger.


128
129
130
131
132
133
134
135
# File 'lib/logutils/logger.rb', line 128

def initialize
  @handlers = []
  @handlers << STDHANDLER   # by default log to console

  ## todo/check: pass levelno through to handlers?
  #   do we need a "global" levelno in the logger?
  @levelno = ALL
end