module Lumberjack::Severity
The standard severity levels for logging messages.
Constants
- DEBUG
Backward compatibilty with 1.0 API
- ERROR
- FATAL
- INFO
- SEVERITY_LABELS
- UNKNOWN
- WARN
Public Class Methods
label_to_level(label)
click to toggle source
# File lib/lumberjack/severity.rb, line 21 def label_to_level(label) SEVERITY_LABELS.index(label.to_s.upcase) || UNKNOWN end
level_to_label(severity)
click to toggle source
# File lib/lumberjack/severity.rb, line 17 def level_to_label(severity) SEVERITY_LABELS[severity] || SEVERITY_LABELS.last end