This repository was archived by the owner on Feb 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathlog_config.yml
More file actions
56 lines (51 loc) · 1.34 KB
/
Copy pathlog_config.yml
File metadata and controls
56 lines (51 loc) · 1.34 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
50
51
52
53
54
55
56
# Scan this file for changes every 30 seconds
#refresh_rate: 30 seconds
appenders:
# An appender named "stdout" that writes to stdout
# It has an additional filter to block low level messages
stdout:
kind: console
encoder:
pattern: "{d(%H:%M:%S%.6f)} {h({l})} [{T}] {t} - {m}{n}"
filters:
[{ kind: threshold, level: info }]
rosetta-api:
kind: rolling_file
path: "log/rosetta-api.log"
encoder:
pattern: "{d} {h({l})} [{T}] {t} - {m}{n}"
policy:
trigger:
kind: size
limit: 100 mb
roller:
kind: fixed_window
count: 5
pattern: "log/rosetta-api.{}.log"
background_noise:
kind: rolling_file
path: "log/background_noise.log"
encoder:
pattern: "{d} {h({l})} [{T}] {t} - {m}{n}"
policy:
trigger:
kind: size
limit: 10 mb
roller:
kind: fixed_window
count: 2
pattern: "log/background_noise.{}.log"
# Set the default logging level to "trace" and attach the "stdout" appender to the root
root:
level: trace
appenders:
- background_noise
loggers:
# Route log events sent to the "ic_rosetta_api" logger to the "rosetta-api" appender,
# and *not* the normal appenders installed at the root
ic_rosetta_api:
level: trace
appenders:
- rosetta-api
- stdout
additive: false