diff options
author | alpaylan | 2021-04-16 01:03:21 +0300 |
---|---|---|
committer | alpaylan | 2021-04-16 01:03:21 +0300 |
commit | b4212a90caa899785402c06d57216e75de0f1c88 (patch) | |
tree | 8adbe6eb6b451eee20d181f26ab771e0c5a920ee /log.conf.yml | |
parent | 82864341afc78b23b358cd775c70ffbfa0d0303f (diff) | |
parent | 72f8ae422eeb03ed87c7819af5d5e25758267b03 (diff) | |
download | gradecoin-b4212a90caa899785402c06d57216e75de0f1c88.tar.gz gradecoin-b4212a90caa899785402c06d57216e75de0f1c88.tar.bz2 gradecoin-b4212a90caa899785402c06d57216e75de0f1c88.zip |
Merge remote-tracking branch 'origin/main'
# Conflicts:
# src/schema.rs
Diffstat (limited to 'log.conf.yml')
-rw-r--r-- | log.conf.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/log.conf.yml b/log.conf.yml new file mode 100644 index 0000000..1940669 --- /dev/null +++ b/log.conf.yml | |||
@@ -0,0 +1,41 @@ | |||
1 | # Scan this file for changes every 2 minutes | ||
2 | refresh_rate: 2 minutes | ||
3 | |||
4 | appenders: | ||
5 | # An appender named "stdout" that writes to stdout with pretty colours | ||
6 | stdout: | ||
7 | kind: console | ||
8 | encoder: | ||
9 | pattern: "[{d(%Y-%m-%d %H:%M:%S)} {h({l})}] - {m}\n" | ||
10 | |||
11 | # And this guy writes to file, also rolls the files (when they get too large) | ||
12 | gradecoin: | ||
13 | kind: rolling_file | ||
14 | path: "log/gradecoin.log" | ||
15 | append: true | ||
16 | encoder: | ||
17 | kind: pattern | ||
18 | pattern: "[{d(%Y-%m-%d %H:%M:%S)} {l}] - {m}\n" | ||
19 | |||
20 | policy: | ||
21 | kind: compound | ||
22 | |||
23 | trigger: | ||
24 | kind: size | ||
25 | limit: 4 mb | ||
26 | |||
27 | roller: | ||
28 | kind: fixed_window | ||
29 | pattern: "log/gradecoin.{}.old.log" | ||
30 | count: 5 | ||
31 | base: 1 | ||
32 | |||
33 | loggers: | ||
34 | gradecoin: | ||
35 | level: info | ||
36 | appenders: | ||
37 | - stdout | ||
38 | - gradecoin | ||
39 | additive: false | ||
40 | |||
41 | |||