-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4js.json
48 lines (48 loc) · 1.11 KB
/
log4js.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"appenders": [
{
"type":"console"
},
{
"type": "log4js-node-mongodb",
"connectionString": "rwgl:[email protected]:27017/exam_common",
"collectionName": "request_log_info",
"layout": {
"type": "pattern",
"pattern": "[%h] - %m"
},
"category": "request_log"
},{
"type": "file",
"filename": "logs/request.log",
"maxLogSize": "1024*1024",
"backups":3,
"layout": {
"type": "pattern",
"pattern": "[%h] - %m"
},
"category": "request_log"
}, {
"type": "log4js-node-mongodb",
"connectionString": "rwgl:[email protected]:27017/exam_common",
"collectionName": "service_log_info",
"category": "service_log",
"layout": {
"type": "pattern",
"pattern": "[%h] - %m"
}
},{
"type": "file",
"filename": "logs/service.log",
"maxLogSize": "1024*1024",
"backups":3,
"category": "service_log"
}
],
"replaceConsole": true,
"levels":{
"request_log":"debug",
"service_log":"debug",
"console":"debug"
}
}