class Object

Constants

ErrLine

Public Instance Methods

to_h() click to toggle source
# File lib/logfoo/entries.rb, line 44
def to_h
  {
    level:  level,
    time:   time,
    msg:    exception.message,
    logger: logger_name,
    err:    exception.class.to_s,
  }.merge!(
    payload
  ).merge!(
    thread:     thread,
    stacktrace: exception.backtrace,
  )
end