-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathloguru-config.yaml
30 lines (30 loc) · 1021 Bytes
/
loguru-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
handlers:
- sink: ext://sys.stdout
format: '[{time:DD-MMM-YYYY HH:mm:ss.SSS}] | {level} | {module}:{function}:{line} - {message}'
backtrace: true
- sink: general.log
format: '[{time:DD-MMM-YYYY HH:mm:ss.SSS}] | {level} | {module}:{function}:{line} - {message}'
backtrace: true
enqueue: true
- sink: different_levels_first.log
format: '[{time:DD-MMM-YYYY HH:mm:ss.SSS}] | {level} | {module}:{function}:{line} - {message}'
filter: {
"": "DEBUG",
"src.aggregator.aggregator": "INFO",
"src.aggregator.artist_aggregate": "WARNING"
}
backtrace: true
enqueue: true
- sink: different_levels_second.log
format: '[{time:DD-MMM-YYYY HH:mm:ss.SSS}] | {level} | {module}:{function}:{line} - {message}'
filter: {
"": "WARNING",
"src.aggregator.aggregator": "WARNING",
"src.aggregator.artist_aggregate": "DEBUG"
}
backtrace: true
enqueue: true
activation:
- [ "", true ]
- [ "aggregator", true ]
- [ "artist_aggregate", true]