Module: GELF

Includes:
Levels
Defined in:
lib/gelf.rb,
lib/gelf/logger.rb,
lib/gelf/notifier.rb,
lib/gelf/severity.rb,
lib/gelf/ruby_sender.rb

Defined Under Namespace

Modules: Levels, LoggerCompatibility Classes: Logger, Notifier, RubyUdpSender

Constant Summary

SPEC_VERSION =
'1.0'
LOGGER_MAPPING =

Maps Ruby Logger levels to syslog levels as SyslogLogger and syslogger gems. This one is default.

{DEBUG   => 7, # Debug
INFO    => 6, # Info
WARN    => 5, # Notice
ERROR   => 4, # Warning
FATAL   => 3, # Error
UNKNOWN => 1}
DIRECT_MAPPING =

Maps Ruby Logger levels to syslog levels as is.

{DEBUG   => 7, # Debug
INFO    => 6, # Info
# skip 5 Notice
WARN    => 4, # Warning
ERROR   => 3, # Error
FATAL   => 2, # Critical
UNKNOWN => 1}

Constants included from Levels

Levels::DEBUG, Levels::ERROR, Levels::FATAL, Levels::INFO, Levels::UNKNOWN, Levels::WARN