rewrite from lager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

29 lines
730 B

-record(rumMsg, {
severity :: rumAtomLevel()
, pid :: pid()
, node :: node()
, module :: module()
, function :: atom()
, file :: atom()
, line :: integer()
, metadata :: [tuple()]
, datetime :: binary()
, timestamp :: non_neg_integer()
, message :: list()
, destinations :: list()
}).
-define(newMsg(Severity, Pid, Node, Module, Function, Line, Metadata, Destinations, TimeMs, Msg),
#rumMsg{
severity = Severity
, pid =Pid
, node = Node
, module = Module
, function = Function
, line =Line
, metadata =Metadata
, datetime = rumUtil:msToBinStr(TimeMs)
, timestamp = TimeMs
, message = Msg
, destinations = Destinations
}).