-
Notifications
You must be signed in to change notification settings - Fork 10
/
logging.conf
36 lines (28 loc) · 836 Bytes
/
logging.conf
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
[loggers]
keys=root,telegram_llm_bot
[handlers]
keys=consoleHandler,detailedConsoleHandler
[formatters]
keys=normalFormatter,detailedFormatter
[logger_root]
level=INFO
handlers=consoleHandler
[logger_telegram_llm_bot]
level=ERROR
handlers=detailedConsoleHandler
qualname=telegram_llm_bot
propagate=0
[handler_consoleHandler]
class=FileHandler
level=ERROR
formatter=detailedFormatter
args=('logs/app.log', 'a')
[handler_detailedConsoleHandler]
class=FileHandler
level=ERROR
formatter=detailedFormatter
args=('logs/app.log', 'a')
[formatter_normalFormatter]
format=%(asctime)s loglevel=%(levelname)-6s logger=%(name)s %(funcName)s() L%(lineno)-4d %(message)s
[formatter_detailedFormatter]
format=%(asctime)s loglevel=%(levelname)-6s logger=%(name)s %(funcName)s() L%(lineno)-4d %(message)s call_trace=%(pathname)s L%(lineno)-4d