-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlogging.yaml
More file actions
49 lines (49 loc) · 1.24 KB
/
logging.yaml
File metadata and controls
49 lines (49 loc) · 1.24 KB
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
# Please note that this file is overriden in the clowdapp.yaml
version: 1
formatters:
simple:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
default:
(): uvicorn.logging.DefaultFormatter
fmt: '%(name)s %(levelprefix)s %(message)s'
use_colors: None
access:
(): uvicorn.logging.AccessFormatter
fmt: '%(name)s %(levelprefix)s %(client_addr)s - "%(request_line)s" %(status_code)s'
json:
class: pythonjsonlogger.jsonlogger.JsonFormatter
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: simple
stream: ext://sys.stdout
default:
formatter: default
class: logging.StreamHandler
stream: ext://sys.stderr
access:
formatter: access
class: logging.StreamHandler
stream: ext://sys.stdout
cloudwatch:
formatter: json
class: ccx_upgrades_inference.logging_utils.InitializedCloudWatchLogger
loggers:
ccx_upgrades_inference:
level: DEBUG
handlers: [default, cloudwatch]
propagate: no
uvicorn:
handlers: [default, cloudwatch]
level: INFO
propagate: no
uvicorn.error:
level: INFO
uvicorn.access:
handlers: [access, cloudwatch]
level: INFO
propagate: no
root:
level: DEBUG
handlers: [default, cloudwatch]