-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog_config.yaml
41 lines (41 loc) · 896 Bytes
/
log_config.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
41
version: 1
disable_existing_loggers: false
formatters:
simple:
format: '[%(levelname)s|%(module)s|L%(lineno)d] %(asctime)s: %(message)s'
datefmt: '%Y-%m-%dT%H:%M:%S%z'
json:
(): 'log_formatter.JSONLogFormatter'
fmt_keys:
level: levelname
message: message
timestamp: timestamp
logger: name
module: module
function: funcName
line: lineno
handlers:
stdout:
class: logging.StreamHandler
level: DEBUG
formatter: json
stream: ext://sys.stdout
file:
class: logging.handlers.RotatingFileHandler
level: DEBUG
formatter: json
filename: logs/algalon.log.jsonl
maxBytes: 100000
backupCount: 3
queue_handler:
class: 'logging.handlers.QueueHandler'
handlers:
- stdout
- file
respect_handler_level: true
loggers:
root:
level: DEBUG
handlers:
- stdout
- file