Module: Kameleoon::Logging::LogLevel

Defined in:
lib/kameleoon/logging/kameleoon_logger.rb

Constant Summary collapse

NONE =
0
ERROR =
1
WARNING =
2
INFO =
3
DEBUG =
4

Class Method Summary collapse

Class Method Details

.name_from_level(log_level) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/kameleoon/logging/kameleoon_logger.rb', line 14

def self.name_from_level(log_level)
  case log_level
  when LogLevel::NONE
    'NONE'
  when LogLevel::ERROR
    'ERROR'
  when LogLevel::WARNING
    'WARNING'
  when LogLevel::INFO
    'INFO'
  when LogLevel::DEBUG
    'DEBUG'
  end
end