diff options
author | alpaylan | 2021-04-16 01:03:21 +0300 |
---|---|---|
committer | alpaylan | 2021-04-16 01:03:21 +0300 |
commit | d248309f8595701a0fddd2462b963bcad55f18c8 (patch) | |
tree | 109d4e2809f9f3392612e86ab3d5a47df5830b11 /log.conf.yml | |
parent | 711d987b8e060682cf2215f25392415e206b3e8d (diff) | |
parent | a1af17aad7c1308fc714a60595bae07cc8bb8a9a (diff) | |
download | gradecoin-d248309f8595701a0fddd2462b963bcad55f18c8.tar.gz gradecoin-d248309f8595701a0fddd2462b963bcad55f18c8.tar.bz2 gradecoin-d248309f8595701a0fddd2462b963bcad55f18c8.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 | |||