-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4rs.yml
40 lines (32 loc) · 1.02 KB
/
log4rs.yml
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
# Scan this file for changes every 30 seconds
refresh_rate: 30 seconds
appenders:
to_file:
kind: rolling_file
path: app.log
append: true
# The encoder to use to format output. Defaults to `kind: pattern`.
encoder:
kind: pattern
# The policy which handles rotation of the log file. Required.
policy:
# Identifies which policy is to be used. If no kind is specified, it will
# default to "compound".
kind: compound
# The remainder of the configuration is passed along to the policy's
# deserializer, and will vary based on the kind of policy.
trigger:
kind: size
limit: 10 mb
roller:
kind: fixed_window
pattern: app.{}.log
# The maximum number of archived logs to maintain. Required.
count: 100
# The base value for archived log indices. Defaults to 0.
base: 1
# Set the default logging level to "warn" and attach the "stdout" appender to the root
root:
level: info
appenders:
- to_file