mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-22 12:05:45 +01:00
debug.log
This commit is contained in:
parent
3c6eb4e627
commit
21ac19aa8d
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user