-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlog4rs.dev.yml
More file actions
31 lines (27 loc) · 843 Bytes
/
log4rs.dev.yml
File metadata and controls
31 lines (27 loc) · 843 Bytes
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
# Scan this file for changes every 30 seconds
refresh_rate: 30 seconds
appenders:
# An appender named "stdout" that writes to stdout
stdout:
kind: console
# An appender named "requests" that writes to a file with a custom pattern encoder
requests:
kind: file
path: "log/log-dev.log"
encoder:
pattern: "{d(%Y-%m-%dT%H:%M:%S%.3f%Z)} [{level:5.5}] [{I}] [{file}:{line}]: {message}{n}"
# Set the default logging level to "warn" and attach the "stdout" appender to the root
root:
level: debug
appenders:
- stdout
- requests
loggers:
# Route log events sent to the "app::requests" logger to the "requests" appender,
# and *not* the normal appenders installed at the root
# my_rust_hyper::webapi::collections:
my_rust_hyper::db:
level: debug
appenders:
- requests
additive: true