-
Notifications
You must be signed in to change notification settings - Fork 0
/
logger.ini
48 lines (39 loc) · 1.18 KB
/
logger.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 = INFO
propagate = 0
handlers = stream
[logger_sqlalchemy.engine.Engine]
level = INFO
propagate = 0
handlers = sqlalchemy
qualname = sqlalchemy.engine.Engine
[logger_uvicorn.access]
level = INFO
propagate = 0
handlers = uvicorn
qualname = uvicorn.access
[handler_stream]
class = app.utils.logging.RichConsoleHandler
kwargs = {"omit_repeated_times":True, "show_time": False, "enable_link_path": False, "tracebacks_show_locals": True}
args = (100, "white")
formatter = default
stream = ext://sys.stdout
[handler_sqlalchemy]
class = app.utils.logging.RichConsoleHandler
kwargs = {"omit_repeated_times":True, "show_time": False, "enable_link_path": False, "tracebacks_show_locals": True}
args = (100, "magenta")
formatter = default
[handler_uvicorn]
class = app.utils.logging.RichConsoleHandler
kwargs = {"omit_repeated_times":True, "show_time": False, "enable_link_path": False, "tracebacks_show_locals": True}
args = (100, "yellow")
formatter = default
[formatter_default]
format = [%(process)d|%(name)-12s] %(message)s
class = logging.Formatter