-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4rs.yml
74 lines (67 loc) · 1.76 KB
/
log4rs.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
appenders:
stdout:
kind: console
encoder:
pattern: "{d(%Y-%m-%d %H:%M:%S)} | \e[1;32m{({l}):5.5}\e[0m | {f}:{L} — {m}{n}"
stdout_ext:
kind: console
encoder:
pattern: "{d(%Y-%m-%d %H:%M:%S)} | \e[1;32m{({l}):5.5}\e[0m | {m}{n}"
log_rumgap:
kind: rolling_file
path: "logs/rumgap.log"
encoder:
pattern: "{d(%Y-%m-%d %H:%M:%S)} | {({l}):5.5} | {f}:{L} — {m}{n}"
policy:
trigger:
kind: size
limit: 2 mb
roller:
kind: fixed_window
pattern: logs/rumgap_{}.gz
count: 5
base: 1
log_manga_parser:
kind: rolling_file
path: "logs/manga_parser.log"
encoder:
pattern: "{d(%Y-%m-%d %H:%M:%S)} | {({l}):5.5} | {f}:{L} — {m}{n}"
policy:
trigger:
kind: size
limit: 2 mb
roller:
kind: fixed_window
pattern: logs/rumgap_{}.gz
count: 5
base: 1
root:
level: warn
appenders:
- log_rumgap
- stdout
loggers:
manga_parser:
level: debug
appenders:
- log_manga_parser
- stdout
additive: false
rumgap:
level: debug
appenders:
- log_rumgap
- stdout
additive: false
http_log:
level: debug
appenders:
- log_rumgap
- stdout_ext
additive: false
sqlx:
level: debug
appenders:
- log_rumgap
- stdout_ext
additive: false