bunyan_shared v0.1.0 Bunyan.Shared.LogMsg
This is the structure the defines a message to be logged.
level
is the level to be logged. Current levels are 0, 10¸20, and 30 fordebug
,info
,warn
, anderror
.msg
is either a binary or a function of arity 0 that returns a binaryextra
is an Elixir term that will be inspected and displayed on the lines following the log messagetimestamp
is the :os.timestamp of when this message was generated.pid
is the process identifier of the process generating the messagenode
is the node on which that process lived
Link to this section Summary
Link to this section Types
Link to this type
t()
t() :: %Bunyan.Shared.LogMsg{ level: level_as_number(), msg: binary() | (() -> binary()), extra: any(), timestamp: non_neg_integer(), pid: pid(), node: atom() }