Module: RubySmart::SimpleLogger::Extensions::Severity
- Includes:
- Logger::Severity
- Included in:
- Logger
- Defined in:
- lib/ruby_smart/simple_logger/extensions/severity.rb
Constant Summary collapse
- SUCCESS =
add severity success (sub-kind of info = 1)
1.1
- SEVERITIES =
creates an severity hash { 0 => 'DEBUG', 1 => 'INFO', 1.1 => 'SUCCESS', 2 => 'WARN', ... }
%w(DEBUG INFO SUCCESS WARN ERROR FATAL UNKNOWN).map { |sev| [const_get(sev), sev] }.to_h.freeze
- LEVEL =
creates an level hash from SEVERITIES
SEVERITIES.reduce({}) { |m, (lvl, sev)| m[sev.downcase.to_sym] = lvl; m }.freeze