|
@@ -27,16 +27,16 @@
|
|
</DefaultRolloverStrategy>
|
|
</DefaultRolloverStrategy>
|
|
</RollingFile>
|
|
</RollingFile>
|
|
<!-- WebSocket 日志 -->
|
|
<!-- WebSocket 日志 -->
|
|
- <RollingFile name="WS_APPENDER" fileName="./logs/debug/debug.log"
|
|
|
|
- filePattern="./logs/debug/debug-%d{yyyy.MM.dd.HH}-%i.log">
|
|
|
|
|
|
+ <RollingFile name="WS_APPENDER" fileName="./logs/ws/ws.log"
|
|
|
|
+ filePattern="./logs/ws/ws-%d{yyyy.MM.dd.HH}-%i.log">
|
|
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}| %level | %X{TRACE_ID} - %X{CALLER} | %m%n" />
|
|
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}| %level | %X{TRACE_ID} - %X{CALLER} | %m%n" />
|
|
<Policies>
|
|
<Policies>
|
|
<TimeBasedTriggeringPolicy interval="1" />
|
|
<TimeBasedTriggeringPolicy interval="1" />
|
|
<SizeBasedTriggeringPolicy size="100 MB" />
|
|
<SizeBasedTriggeringPolicy size="100 MB" />
|
|
</Policies>
|
|
</Policies>
|
|
<DefaultRolloverStrategy max="10000">
|
|
<DefaultRolloverStrategy max="10000">
|
|
- <Delete basePath="./logs/debug" maxDepth="1">
|
|
|
|
- <IfFileName glob="debug-*.log">
|
|
|
|
|
|
+ <Delete basePath="./logs/ws" maxDepth="1">
|
|
|
|
+ <IfFileName glob="ws-*.log">
|
|
<IfAccumulatedFileSize exceeds="2 GB" />
|
|
<IfAccumulatedFileSize exceeds="2 GB" />
|
|
</IfFileName>
|
|
</IfFileName>
|
|
</Delete>
|
|
</Delete>
|