Add date to log entries
All checks were successful
/ Build the server (push) Successful in 2m26s

This commit is contained in:
Mutzi 2024-09-06 08:24:29 +02:00
parent 5306a1e682
commit 1b76f27e52
Signed by: root
GPG Key ID: 2437494E09F13876

View File

@ -4,14 +4,14 @@
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender"> <appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout"> <layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n%throwable</Pattern> <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n%throwable</Pattern>
</layout> </layout>
</appender> </appender>
<appender name="RollingFile" class="ch.qos.logback.core.FileAppender"> <appender name="RollingFile" class="ch.qos.logback.core.FileAppender">
<file>./logs/fileserver-${currentTs}.log</file> <file>./logs/fileserver-${currentTs}.log</file>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<Pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n%throwable</Pattern> <Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n%throwable</Pattern>
</encoder> </encoder>
</appender> </appender>