-
Notifications
You must be signed in to change notification settings - Fork 12
/
logging.test.conf
60 lines (49 loc) · 1.13 KB
/
logging.test.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
59
60
[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]
; This loglevel is set to DEBUG for tests where we expect specific
; debug logging to occur. In production, this should be set to INFO.
level=DEBUG
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