module Lumberjack::Severity
The standard severity levels for logging messages.
Constants
- DEBUG
- ERROR
- FATAL
- INFO
- SEVERITY_LABELS
- UNKNOWN
- WARN
Public Class Methods
Source
# File lib/lumberjack/severity.rb, line 20 def label_to_level(label) SEVERITY_LABELS.index(label.to_s.upcase) || UNKNOWN end
Source
# File lib/lumberjack/severity.rb, line 16 def level_to_label(severity) SEVERITY_LABELS[severity] || SEVERITY_LABELS.last end