-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.logging.json
51 lines (50 loc) · 1.26 KB
/
config.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
{
"disable_existing_loggers": false,
"formatters": {
"simple": {
"format": "[%(asctime)s] (%(filename)s:%(lineno)d) - %(name)s - %(levelname)s - %(message)s"
}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "simple",
"level": "INFO",
"stream": "ext://sys.stdout"
},
"file_handler": {
"backupCount": 10,
"class": "logging.handlers.RotatingFileHandler",
"encoding": "utf8",
"filename": "logs/overseer.log",
"formatter": "simple",
"level": "INFO",
"maxBytes": 104857600
},
"protocol_handler": {
"backupCount": 10,
"class": "logging.handlers.RotatingFileHandler",
"encoding": "utf8",
"filename": "logs/protocol.log",
"formatter": "simple",
"level": "INFO",
"maxBytes": 104857600
}
},
"loggers": {
"overseer.quality": {
"handlers": ["console"]
},
"protocol": {
"handlers": ["protocol_handler"],
"propagate": 0
}
},
"root": {
"handlers": [
"file_handler"
],
"level": "INFO"
},
"version": 1
}