Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
docs
Commits
15f74de4
Commit
15f74de4
authored
9 years ago
by
柯阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log req added
parent
7b85f224
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
log.md
log.md
+11
-11
No files found.
log.md
View file @
15f74de4
...
...
@@ -30,21 +30,21 @@
所有日志必须包含以下字段
* `LEVEL`: 日志等级。`DEBUG`, `INFO`, `WARNING`, `ERROR`等。
* `LOGID`: trace用,暂时空缺,填空字符串。
* `TIME`: 日志记录时间。使用[ISO8601标准](https://en.wikipedia.org/wiki/ISO_8601),要求包含时区`+08:00`。根据需要决定是否精确到毫秒。完整例子如`2015-10-14T17:13:00+08:00`。
*
`LEVEL`: 日志等级。`DEBUG`, `INFO`, `WARNING`, `ERROR`等。
*
`LOGID`: trace用,暂时空缺,填空字符串。
*
`TIME`: 日志记录时间。使用[ISO8601标准](https://en.wikipedia.org/wiki/ISO_8601),要求包含时区`+08:00`。根据需要决定是否精确到毫秒。完整例子如`2015-10-14T17:13:00+08:00`。
2.
`SYS`
字段
`SYS`字段包含一些全局性的或系统级别的信息,只要有就必须打。包含以下子字段
* `action`: 请求的URL(去掉GET参数)。
* `cl_type`: 请求来源端类型,`ios`/`android`/`pc`/`m`。
* `cl_ver`: 客户端版本号,`pc`不需要填写,m站除了native内嵌h5外不需要填写。
* `cl_id`: 设备标识,android取`device_id`,ios取`idfa`。
* `channel`: 请求渠道,客户端取包名即`channel`字段。pc和m站需要具体分析,暂不填写。
* `session_id`: 用户登陆后必须填写。否则不填写。
* `log_host`: 打印该日志所在机器的内网IP。
*
`action`: 请求的URL(去掉GET参数)。
*
`cl_type`: 请求来源端类型,`ios`/`android`/`pc`/`m`。
*
`cl_ver`: 客户端版本号,`pc`不需要填写,m站除了native内嵌h5外不需要填写。
*
`cl_id`: 设备标识,android取`device_id`,ios取`idfa`。
*
`channel`: 请求渠道,客户端取包名即`channel`字段。pc和m站需要具体分析,暂不填写。
*
`session_id`: 用户登陆后必须填写。否则不填写。
*
`log_host`: 打印该日志所在机器的内网IP。
3.
`APP`
字段
...
...
@@ -54,5 +54,5 @@
`TIMER`字段包括所有的请求耗时信息,值以毫秒为单位。必须包括`total`子字段:
* `total`: 该请求总耗时。
*
`total`: 该请求总耗时。
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment