rewrite from lager
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 

29 行
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
}).