-
Notifications
You must be signed in to change notification settings - Fork 1
/
logging.yaml
40 lines (40 loc) · 924 Bytes
/
logging.yaml
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
version: 1
disable_existing_loggers: False
formatters:
src:
"()": colorlog.ColoredFormatter
format: '[%(black)s%(asctime)s%(reset)s] [%(log_color)s%(levelname)s%(reset)s] [%(cyan)sFile "%(relativePath)s", line %(lineno)d%(reset)s] %(message)s'
default:
"()": colorlog.ColoredFormatter
format: '[%(black)s%(asctime)s%(reset)s] [%(log_color)s%(levelname)s%(reset)s] [%(name)s] %(message)s'
handlers:
src:
formatter: src
class: logging.StreamHandler
stream: ext://sys.stdout
default:
formatter: default
class: logging.StreamHandler
stream: ext://sys.stdout
loggers:
src:
level: DEBUG
handlers:
- src
propagate: no
uvicorn.error:
level: INFO
handlers:
- default
propagate: no
httpx:
level: WARNING
uvicorn.access:
level: INFO
handlers:
- default
propagate: no
root:
level: INFO
handlers:
- default