-
Notifications
You must be signed in to change notification settings - Fork 1
/
logging.json
64 lines (64 loc) · 1.74 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",
"encoding": "utf8",
"maxBytes": 1048576,
"filename": "logs/bot.log",
"backupCount": 20
},
"file_conversation": {
"class": "logging.handlers.RotatingFileHandler",
"formatter": "conversation_status",
"level": "DEBUG",
"encoding": "utf8",
"maxBytes": 1048576,
"filename": "logs/bot_conversations.log",
"backupCount": 20
}
},
"loggers": {
"conversation": {
"handlers": ["console", "file_conversation"],
"propagate": false,
"level": "DEBUG"
},
"": {
"handlers": [
"console",
"file"
],
"propagate": false,
"level": "DEBUG"
},
"telegram": {
"level": "WARNING"
},
"JobQueue": {
"level": "WARNING"
},
"bot.bot": {
"level": "INFO"
}
},
"formatters": {
"short": {
"format": "[%(name)s][%(levelname)s] >>> %(message)s"
},
"standard": {
"format": "[%(asctime)s][%(name)s][%(module)s:%(funcName)s:%(lineno)d][%(levelname)s] >>> %(message)s"
},
"conversation_status": {
"format": "[%(asctime)s][%(levelname)s] >>> %(message)s"
}
}
}