-
Notifications
You must be signed in to change notification settings - Fork 3
/
logging.conf
58 lines (47 loc) · 1015 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[loggers]
keys=root,aurweb,uvicorn,hypercorn,alembic
[handlers]
keys=simpleHandler,detailedHandler
[formatters]
keys=simpleFormatter,detailedFormatter
[logger_root]
level=INFO
; We add NullHandler programmatically.
handlers=
propogate=0
[logger_aurweb]
level=INFO
handlers=simpleHandler
qualname=aurweb
propagate=1
[logger_uvicorn]
level=INFO
handlers=simpleHandler
qualname=uvicorn
propagate=0
[logger_hypercorn]
level=INFO
handlers=simpleHandler
qualname=hypercorn
propagate=0
[logger_alembic]
level=INFO
handlers=simpleHandler
qualname=alembic
propagate=0
[handler_simpleHandler]
class=StreamHandler
level=DEBUG
formatter=simpleFormatter
args=(sys.stdout,)
[handler_detailedHandler]
class=StreamHandler
level=DEBUG
formatter=detailedFormatter
args=(sys.stdout,)
[formatter_simpleFormatter]
format=%(asctime)s %(levelname)-5s | %(name)s: %(message)s
datefmt=%H:%M:%S
[formatter_detailedFormatter]
format=%(asctime)s %(levelname)-5s | %(name)s.%(funcName)s() @ L%(lineno)d: %(message)s
datefmt=%H:%M:%S