Better defaults for logging

This commit is contained in:
Maxime Dor
2017-09-19 01:03:44 +02:00
parent 00a00be692
commit 64973f57cf
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
spring:
main:
banner-mode: 'off'
logging:
level:
org:
@@ -5,6 +9,8 @@ logging:
apache:
catalina: "WARN"
directory: "WARN"
pattern:
console: '%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:%5p} [%15.15t] %35.35logger{34} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}'
server:
port: 8090
@@ -65,3 +71,11 @@ invite:
storage:
backend: 'sqlite'
---
spring:
profiles: systemd
logging:
pattern:
console: '%d{.SSS}${LOG_LEVEL_PATTERN:%5p} [%15.15t] %35.35logger{34} : %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}'

View File

@@ -4,7 +4,7 @@ After=syslog.target
[Service]
User=mxisd
ExecStart=/usr/bin/mxisd --spring.config.location=/etc/mxisd/ --spring.config.name=mxisd
ExecStart=/usr/bin/mxisd --spring.config.location=/etc/mxisd/ --spring.config.name=mxisd --spring.profiles.active=systemd
SuccessExitStatus=143
[Install]