-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml
58 lines (49 loc) · 1.98 KB
/
config.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
databaseUrl: ${IBM_DB_URL}
iamKey: ${IBM_IAM_KEY}
dbName: be-neutral
server:
rootPath: /api/v1
requestLog:
appenders:
- type: console
- type: file
# roll-over daily and retain for 7 days
currentLogFilename: ./logs/requests.log
archivedLogFilenamePattern: ./logs/requests-%d.log.gz
archivedFileCount: 7
swagger:
resourcePackage: pl.wanderers.footprint.resources
logging:
# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
level: INFO
# Logger-specific levels.
loggers:
# Permit debug, info, warn and error messages to be logged by appenders.
pl.wanderers.footprint: DEBUG
# increase log level to ERROR to mute hundreds of WARNS when reflections scan libs which are not present at runtime.
org.reflections.Reflections: ERROR
# Logback's Time Based Rolling Policy - archivedLogFilenamePattern: /tmp/application-%d{yyyy-MM-dd}.log.gz
# Logback's Size and Time Based Rolling Policy - archivedLogFilenamePattern: /tmp/application-%d{yyyy-MM-dd}-%i.log.gz
# Logback's Fixed Window Rolling Policy - archivedLogFilenamePattern: /tmp/application-%i.log.gz
appenders:
- type: console
# Log warnings and errors to stderr
- type: console
threshold: WARN
target: stderr
# Log info, warnings and errors to our apps' main log.
# Rolled over daily and retained for 7 days.
- type: file
threshold: INFO
logFormat: "%-6level [%d{HH:mm:ss.SSS}] [%t] %logger{5} - %X{code} %msg %n"
currentLogFilename: ./logs/application.log
archivedLogFilenamePattern: ./logs/application-%d{yyyy-MM-dd}-%i.log.gz
archivedFileCount: 7
maxFileSize: 10MiB
# Log debug messages, info, warnings and errors to our apps' debug log.
# Rolled over hourly and retained for 6 hours
- type: file
threshold: DEBUG
currentLogFilename: ./logs/debug.log
archivedLogFilenamePattern: ./logs/debug-%d{yyyy-MM-dd-HH}.log.gz
archivedFileCount: 6