-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.json
53 lines (49 loc) · 932 Bytes
/
logging.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
49
50
51
52
53
{
"version": 1,
"formatters": {
"simple": {
"format": "%(lineno)s -%(thread)d - %(asctime)s - %(name)s - %(levelname)s - %(message)s"
}
},
"handlers":
{
"console": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"formatter": "simple"
},
"replica_file":{
"class": "logging.handlers.RotatingFileHandler",
"level": "DEBUG",
"formatter": "simple",
"filename": "replica.log",
"maxBytes": 10000000
},
"client_file":{
"class": "logging.handlers.RotatingFileHandler",
"level": "DEBUG",
"formatter": "simple",
"filename": "client.log",
"maxBytes": 10000000,
"encoding": "utf8"
}
},
"loggers":
{
"replica":{
"level": "INFO",
"handlers": ["replica_file"],
"propagate": "no"
},
"client":{
"level": "INFO",
"handlers": ["client_file"],
"propagate": "no"
}
},
"root":
{
"level": "INFO",
"handlers": ["console"]
}
}