Module: Ougai::Logging::Severity
Constant Summary collapse
- TRACE =
-1
- SEV_LABEL =
%w(TRACE DEBUG INFO WARN ERROR FATAL ANY).each(&:freeze).freeze
Instance Method Summary collapse
Instance Method Details
#to_label(severity) ⇒ Object
13 14 15 |
# File 'lib/ougai/logging.rb', line 13 def to_label(severity) SEV_LABEL[severity + 1] || 'ANY' end |