diff options
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 | |||