debug.log

This commit is contained in:
creeper123123321 2021-03-30 07:42:50 -03:00
parent 3c6eb4e627
commit 21ac19aa8d
2 changed files with 14 additions and 3 deletions

View File

@ -110,6 +110,7 @@ class WebDashboardServer {
suspend fun onException(ws: WebSocketServerSession, exception: Exception) {
val client = clients[ws]!!
webLogger.info("WS Error: ${client.id} $exception")
webLogger.debug("Ws exception: ", exception)
client.state.onException(client, exception)
}
}

View File

@ -14,11 +14,21 @@
<OnStartupTriggeringPolicy/>
</Policies>
</RollingRandomAccessFile>
<RollingRandomAccessFile name="DebugFile" fileName="logs/debug.log" filePattern="logs/debug-%d{yyyy-MM-dd}-%i.log.xz">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss} [%t] [%logger] %level{length=1} %msg%n"/>
<Policies>
<TimeBasedTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="5 MB"/>
<OnStartupTriggeringPolicy/>
</Policies>
<DefaultRolloverStrategy max="2"/>
</RollingRandomAccessFile>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="TerminalConsole"/>
<AppenderRef ref="File"/>
<Root level="all">
<AppenderRef level="info" ref="TerminalConsole"/>
<AppenderRef level="info" ref="File"/>
<AppenderRef level="debug" ref="DebugFile"/>
</Root>
</Loggers>
</Configuration>