generated from one-zero-eight/fastapi-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.yaml
38 lines (38 loc) · 897 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
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: INFO
handlers:
- src
propagate: no
uvicorn.error:
level: INFO
handlers:
- default
propagate: no
uvicorn.access:
level: INFO
handlers:
- default
propagate: no
passlib:
level: ERROR
httpx:
level: WARNING