aboutsummaryrefslogtreecommitdiffstats
path: root/log.conf.yml
blob: 1940669a0ce4f2e5e411c9ccdb39df09cd2f7f0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Scan this file for changes every 2 minutes
refresh_rate: 2 minutes

appenders:
  # An appender named "stdout" that writes to stdout with pretty colours
  stdout:
    kind: console
    encoder:
      pattern: "[{d(%Y-%m-%d %H:%M:%S)} {h({l})}] - {m}\n"

  # And this guy writes to file, also rolls the files (when they get too large)
  gradecoin:
    kind: rolling_file
    path: "log/gradecoin.log"
    append: true
    encoder:
      kind: pattern
      pattern: "[{d(%Y-%m-%d %H:%M:%S)} {l}] - {m}\n"

    policy:
      kind: compound

      trigger:
        kind: size
        limit: 4 mb

      roller:
        kind: fixed_window
        pattern: "log/gradecoin.{}.old.log"
        count: 5
        base: 1

loggers:
  gradecoin:
    level: info
    appenders:
      - stdout
      - gradecoin
    additive: false