summaryrefslogtreecommitdiffstats
path: root/log.conf.yml
diff options
context:
space:
mode:
authorYigit Sever2021-04-15 23:03:58 +0300
committerYigit Sever2021-04-15 23:03:58 +0300
commit44116fd9d5003f4aa041b72491e26356ed47b924 (patch)
tree0f3cb3355728a0bee87ebeca215c75bf48aa521a /log.conf.yml
parentbf4d0be4aeb639da5daff0e4b5458b769b9f62c1 (diff)
downloadgradecoin-44116fd9d5003f4aa041b72491e26356ed47b924.tar.gz
gradecoin-44116fd9d5003f4aa041b72491e26356ed47b924.tar.bz2
gradecoin-44116fd9d5003f4aa041b72491e26356ed47b924.zip
Switch over to big boy logging
Diffstat (limited to 'log.conf.yml')
-rw-r--r--log.conf.yml41
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
2refresh_rate: 2 minutes
3
4appenders:
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
33loggers:
34 gradecoin:
35 level: info
36 appenders:
37 - stdout
38 - gradecoin
39 additive: false
40
41