added file logging configuration

This commit is contained in:
Gauthier Roebroeck 2019-10-16 16:39:07 +08:00
parent f5e8698e57
commit 1a1b49f641
4 changed files with 10 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,6 +1,8 @@
.gradle
!gradle/wrapper/gradle-wrapper.jar
*.log
### STS ###
.apt_generated
.classpath

View file

@ -11,6 +11,8 @@ komga:
spring:
profiles:
include: flyway
logging.file: komga-dev.log
logging:
file.max-history: 1
level:
org.gotson.komga: debug

View file

@ -2,6 +2,7 @@ spring:
profiles:
include: prod
datasource:
url: jdbc:h2:/config/database.h2;DB_CLOSE_DELAY=-1
url: jdbc:h2:/config/database.h2
logging.file: /config/logs/komga.log
komga:
libraries-scan-cron: "0 */15 * * * ?"

View file

@ -1,3 +1,6 @@
spring:
profiles:
include: flyway
logging.file: komga.log
logging:
file.max-history: 10