-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4g.json
48 lines (48 loc) · 1000 Bytes
/
log4g.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
{
"level": "debug",
"prefix": "[log4g] ",
"flag": "date|time|shortfile",
"items":[
{
"disabled": false,
"output": "stdout"
},
{
"disabled": true,
"output": "stderr"
},
{
"disabled": false,
"output": "file",
"filename": "log/log4g.log",
"maxsize": 100,
"max_lines": 0,
"max_count": 0,
"daily": true
},
{
"disabled": true,
"output": "redis",
"address": "192.168.56.201:6379",
"password": "",
"redis_type": "list",
"redis_key": "log-list-log4g",
"codec": "plain",
"json_key": "message",
"json_ext": "{\"fields\":{\"env\":\"log4g\"}}"
},
{
"disabled": false,
"output": "socket",
"address": "192.168.56.210:5045",
"network": "udp",
"codec": "json",
"json_key": "message",
"json_ext": "{\"fields\":{\"env\":\"log4g\"}}"
},
{
"disabled": true,
"output": "elasticsearch"
}
]
}