-
Notifications
You must be signed in to change notification settings - Fork 48
/
logging.json
64 lines (64 loc) · 1.67 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
{
"version": 1,
"disable_existing_loggers": false,
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "standard",
"level": "DEBUG"
},
"file": {
"class" : "logging.handlers.RotatingFileHandler",
"formatter": "standard",
"level": "DEBUG",
"filename": "logs/qbtbot.log",
"encoding": "utf8",
"maxBytes": 524288,
"backupCount": 25
},
"jobs_file": {
"class" : "logging.handlers.RotatingFileHandler",
"formatter": "standard",
"level": "DEBUG",
"filename": "logs/jobs.log",
"encoding": "utf8",
"maxBytes": 524288,
"backupCount": 25
}
},
"loggers": {
"": {
"handlers": [
"console",
"file"
],
"propagate": false,
"level": "DEBUG"
},
"jobs": {
"handlers": [
"console",
"jobs_file"
],
"propagate": false,
"level": "DEBUG"
},
"telegram": {
"level": "WARNING"
},
"JobQueue": {
"level": "WARNING"
},
"urllib3.connectionpool": {
"level": "WARNING"
}
},
"formatters": {
"short": {
"format": "[%(name)s][%(levelname)s] >>> %(message)s"
},
"standard": {
"format": "[%(asctime)s][%(name)s][%(levelname)s] >>> %(message)s"
}
}
}