Module: Celluloid::IncidentLogger::Severity

Includes:
Logger::Severity
Included in:
Celluloid::IncidentLogger
Defined in:
lib/celluloid/logging/incident_logger.rb

Constant Summary collapse

TRACE =
-1

Instance Method Summary collapse

Instance Method Details

#severity_to_string(severity) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/celluloid/logging/incident_logger.rb', line 14

def severity_to_string(severity)
  case severity
  when TRACE   then "TRACE"
  when DEBUG   then "DEBUG"
  when INFO    then "INFO"
  when WARN    then "WARN"
  when ERROR   then "ERROR"
  when FATAL   then "FATAL"
  when UNKNOWN then "UNKNOWN"
  end
end