Module: GELF

Includes:
Levels
Defined in:
lib/gelf.rb,
lib/gelf/logger.rb,
lib/gelf/notifier.rb,
lib/gelf/severity.rb,
lib/gelf/transport/tcp.rb,
lib/gelf/transport/udp.rb,
lib/gelf/transport/http.rb,
lib/gelf/transport/https.rb,
lib/gelf/transport/tcp_tls.rb

Defined Under Namespace

Modules: Levels, LoggerCompatibility, Protocol, Transport Classes: Logger, Notifier

Constant Summary collapse

SPEC_VERSION =
'1.1'
LOGGER_MAPPING =

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

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

Maps Syslog or Ruby Logger levels directly to standard syslog numerical severities.

{DEBUG         => 7, # Debug
INFORMATIONAL => 6, # Informational (syslog source)
INFO          => 6, # Informational (Logger source)
NOTICE        => 5, # Notice
WARNING       => 4, # Warning (syslog source)
WARN          => 4, # Warning (Logger source)
ERROR         => 3, # Error
CRITICAL      => 2, # Critical (syslog source)
FATAL         => 2, # Critical (Logger source)
ALERT         => 1, # Alert (syslog source)
UNKNOWN       => 1, # Alert - shouldn't be used (Logger source)
EMERGENCY     => 0}

Constants included from Levels

Levels::ALERT, Levels::CRITICAL, Levels::DEBUG, Levels::EMERGENCY, Levels::ERROR, Levels::FATAL, Levels::INFO, Levels::INFORMATIONAL, Levels::NOTICE, Levels::UNKNOWN, Levels::WARN, Levels::WARNING