Skip to content

Log protocol

Ten12 edited this page Oct 15, 2018 · 2 revisions

后端解析出的日志是带有特定协议格式。例如:

{"c":"clogan header","f":1,"l":1538034504703,"n":"clogan","i":1,"m":true}

协议中每个key含义

key  type description
c string 日志内容
f int 日志类型
l long 时间戳
n string 线程名称
i int 线程id
m bool 是不是主线程
Clone this wiki locally