Log Struct

Internally all log messages are passed around in a Log Struct. In order to write your own custom formatter or log appender it is necessary to understand the fields:

Log = Struct.new(
  :level,
  :thread_name,
  :name,
  :message,
  :payload,
  :time,
  :duration,
  :tags,
  :level_index,
  :exception,
  :metric)

level [Symbol]

thread_name [String]

name [String]

message [String]

payload [Hash|Exception]

time [Time]

duration [Float]

tags [Array]

level_index [Integer]

exception [Object]

metric [Object]

Next: View on Github ==>