forked from cookiemonstermayhem/tarigpuminer
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlog4rs_sample.yml
46 lines (43 loc) · 1.14 KB
/
log4rs_sample.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
# A sample log configuration file for running in release mode.
#
# See https://docs.rs/log4rs/0.8.3/log4rs/encode/pattern/index.html for deciphering the log pattern. The log format
# used in this sample configuration prints messages as:
# timestamp [target] LEVEL message
refresh_rate: 30 seconds
appenders:
# An appender named "stdout" that writes to stdout
stdout:
kind: console
encoder:
pattern: "{d(%H:%M)} {h({l}):5} {m}{n}"
filters:
- kind: threshold
level: info
# An appender named "base_layer" that writes to a file with a custom pattern encoder
xtrgpuminer:
kind: rolling_file
path: "{{log_dir}}/log/xtrgpuminer.log"
policy:
kind: compound
trigger:
kind: size
limit: 10mb
roller:
kind: fixed_window
base: 1
count: 5
pattern: "{{log_dir}}/log/xtrgpuminer.{}.log"
encoder:
pattern: "{d(%Y-%m-%d %H:%M:%S.%f)} {l:5} {m} // {f}:{L}{n}"
# Set the default logging level to "info"
root:
level: warn
appenders:
- stdout
- xtrgpuminer
loggers:
tari:
level: info
appenders:
- stdout
- xtrgpuminer