Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Parzival-05 committed Oct 16, 2024
1 parent 0602050 commit f15d7a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions usvm-ml-gameserver/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ dependencies {

implementation(Libs.kotlinx_cli)
implementation(Libs.slf4j_simple)
implementation(Libs.logback)

implementation("io.github.rchowell:dotlin:1.0.2")
testImplementation(kotlin("test"))
Expand Down
10 changes: 5 additions & 5 deletions usvm-ml-gameserver/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>${LOG_DIR}/usvm_game_server.log</file>
<encoder>
<pattern>%d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="trace">
<appender-ref ref="STDOUT"/>
<root level="INFO">
<appender-ref ref="FILE"/>
</root>
<logger name="org.eclipse.jetty" level="DEBUG"/>
<logger name="io.netty" level="DEBUG"/>
<logger name="io.netty" level="INFO"/>
</configuration>

0 comments on commit f15d7a1

Please sign in to comment.