Class: Kirei::Logging::Level

Inherits:
T::Enum
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/kirei/logging/level.rb

Instance Method Summary collapse

Instance Method Details

#to_humanObject



19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/kirei/logging/level.rb', line 19

def to_human
  case self
  when UNKNOWN then "UNKNOWN"
  when FATAL   then "FATAL"
  when ERROR   then "ERROR"
  when WARN    then "WARN"
  when INFO    then "INFO"
  when DEBUG   then "DEBUG"
  else
    T.absurd(self)
  end
end