Exception: Exception

Defined in:
lib/ttk/logger/to_ttk_log.rb

Direct Known Subclasses

TTK::TTKException

Instance Method Summary collapse

Instance Method Details

#to_ttk_log(log) ⇒ Object



70
71
72
73
74
75
76
77
78
# File 'lib/ttk/logger/to_ttk_log.rb', line 70

def to_ttk_log ( log )
  if log.severity_level <= Severity::DEBUG
    long_pp.to_ttk_log(log)
  elsif log.severity_level <= Severity::VERBOSE_INFO
    short_pp.to_ttk_log(log)
  else
    tiny_pp.to_ttk_log(log)
  end
end