Sha256: c8d03413d0712786a5f945c6586516346451a0c0fe5a5e266cd102077a788dd2
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 Bytes
Contents
module Logatron MSG_ID = :msg_id SITE = :site DEBUG = 'DEBUG'.freeze INVALID_USE = 'INVALID_USE'.freeze INFO = 'INFO'.freeze WARN = 'WARN'.freeze ERROR = 'ERROR'.freeze CRITICAL = 'CRITICAL'.freeze FATAL = 'FATAL'.freeze # Maps Constants to the Logger Severity Integers: # DEBUG = 0 # INFO = 1 # WARN = 2 # ERROR = 3 # FATAL = 4 # UNKNOWN = 5 # Note that the Logatron Severities will be put into # the logs (severity => INVALID_USE), for filtering purposes SEVERITY_MAP = { Logatron::DEBUG => 0, Logatron::INFO => 1, Logatron::INVALID_USE => 1, Logatron::WARN => 2, Logatron::ERROR => 3, Logatron::CRITICAL => 4, Logatron::FATAL => 5 } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
logatron-0.3.0 | lib/logatron/const.rb |
logatron-0.2.6 | lib/logatron/const.rb |