Module: Ghaki::Logger

Defined in:
lib/ghaki/logger/app.rb,
lib/ghaki/logger/base.rb,
lib/ghaki/logger/null.rb,
lib/ghaki/logger/const.rb,
lib/ghaki/logger/liner.rb,
lib/ghaki/logger/mixin.rb,
lib/ghaki/logger/spec_helper.rb,
lib/ghaki/logger/wrapper/base.rb,
lib/ghaki/logger/wrapper/major.rb,
lib/ghaki/logger/wrapper/minor.rb,
lib/ghaki/logger/core_ext/logdev.rb,
lib/ghaki/logger/core_ext/logger.rb

Overview

:nodoc:

Defined Under Namespace

Modules: CoreExt, Liner, Mixin, SpecHelper, Wrapper Classes: App, Base, Null

Constant Summary collapse

DEF_BOX_SIZE =

Default log separator line length.

76
DEF_BOX_CHAR =

Default line separator character.

'='
MAJOR_BOX_CHAR =

Default major mode log separator character.

'#'
MINOR_BOX_CHAR =

Default minor mode log separator character.

'*'
DEF_DATETIME_FORMAT =

Default date time stamp log formatting.

'%Y/%m/%d %H:%M:%S %Z'
DEF_LEVEL =

Default logging level.

::Logger::INFO
SEVERITY_LOOKUP =

Lookup table for logging levels.

  • Has strings, symbols, and ::Logger integer values.

{
  ::Logger::DEBUG   => ::Logger::DEBUG,
  ::Logger::INFO    => ::Logger::INFO,
  ::Logger::WARN    => ::Logger::WARN,
  ::Logger::ERROR   => ::Logger::ERROR,
  ::Logger::FATAL   => ::Logger::FATAL,
  ::Logger::UNKNOWN => ::Logger::UNKNOWN,
  'DEBUG'   => ::Logger::DEBUG,
  'INFO'    => ::Logger::INFO,
  'WARN'    => ::Logger::WARN,
  'ERROR'   => ::Logger::ERROR,
  'FATAL'   => ::Logger::FATAL,
  'UNKNOWN' => ::Logger::UNKNOWN,
  :debug    => ::Logger::DEBUG,
  :info     => ::Logger::INFO,
  :warn     => ::Logger::WARN,
  :error    => ::Logger::ERROR,
  :fatal    => ::Logger::FATAL,
  :unknown  => ::Logger::UNKNOWN,
}