Skip to content

Commit bc28fa4

Browse files
committed
improve logback file conf
Signed-off-by: Julien Buret <jburet@voyages-sncf.com>
1 parent 522264c commit bc28fa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/src/main/kotlin/fr/vsct/tock/shared/LogbackConfigurator.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ internal class LogbackConfigurator : ContextAwareBase(), Configurator {
4646
val appender = if (booleanProperty("tock_logback_file_appender", false)) {
4747
RollingFileAppender<ILoggingEvent>().also {
4848
it.name = "file"
49-
it.file = "logFile.log"
49+
it.file = "log/logFile.log"
5050
it.context = c
5151
it.rollingPolicy = TimeBasedRollingPolicy<ILoggingEvent>().apply {
52-
fileNamePattern = "logFile.%d{yyyy-MM-dd}.log"
52+
fileNamePattern = "log/logFile.%d{yyyy-MM-dd}.log"
5353
maxHistory = 30
5454
context = c
5555
setTotalSizeCap(FileSize.valueOf("3GB"))

0 commit comments

Comments
 (0)