-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ini
48 lines (39 loc) · 1.25 KB
/
config.ini
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
[loggers]
keys = root, sqlalchemy.engine.Engine, uvicorn.access
[handlers]
keys = stream, sqlalchemy, uvicorn
[formatters]
keys = default
[logger_root]
level = DEBUG
propagate = 0
handlers = stream
[logger_sqlalchemy.engine.Engine]
level = DEBUG
propagate = 0
handlers = sqlalchemy
qualname = sqlalchemy.engine.Engine
[logger_uvicorn.access]
level = DEBUG
propagate = 0
handlers = uvicorn
qualname = uvicorn.access
[handler_stream]
class = app.utils.logging.RichConsoleHandler
kwargs = {"omit_repeated_times":True, "enable_link_path": True, "tracebacks_show_locals": True, "show_path": True, "rich_tracebacks": True}
args = (160, "white")
formatter = default
stream = ext://sys.stdout
[handler_sqlalchemy]
class = app.utils.logging.RichConsoleHandler
kwargs = {"omit_repeated_times":True, "enable_link_path": True, "tracebacks_show_locals": True, "show_path": True, "rich_tracebacks": True}
args = (160, "magenta")
formatter = default
[handler_uvicorn]
class = app.utils.logging.RichConsoleHandler
kwargs = {"omit_repeated_times":True, "enable_link_path": True, "tracebacks_show_locals": True, "show_path": True, "rich_tracebacks": True}
args = (160, "yellow")
formatter = default
[formatter_default]
format = [%(process)d|%(name)s] %(message)s
class = logging.Formatter