diff options
| author | Yigit Sever | 2021-04-15 23:03:58 +0300 |
|---|---|---|
| committer | Yigit Sever | 2021-04-15 23:03:58 +0300 |
| commit | 8c2b7ebe1e98b88ddbb07a68dc8e54b7c5047379 (patch) | |
| tree | e0bb5359ee7f1905f9829e5b95a64d1fb9553c7c /log.conf.yml | |
| parent | 7ee9ebea367895b1b028c7a842a635f271d6f8c4 (diff) | |
| download | gradecoin-8c2b7ebe1e98b88ddbb07a68dc8e54b7c5047379.tar.gz gradecoin-8c2b7ebe1e98b88ddbb07a68dc8e54b7c5047379.tar.bz2 gradecoin-8c2b7ebe1e98b88ddbb07a68dc8e54b7c5047379.zip | |
Switch over to big boy logging
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 | |||
