Ver Fonte

修改websocket日志名称

lideyin há 5 anos atrás
pai
commit
249df2893e
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      src/main/resources/log4j2.xml

+ 4 - 4
src/main/resources/log4j2.xml

@@ -27,16 +27,16 @@
 			</DefaultRolloverStrategy>
 		</RollingFile>
 		<!-- 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" />
 			<Policies>
 				<TimeBasedTriggeringPolicy interval="1" />
 				<SizeBasedTriggeringPolicy size="100 MB" />
 			</Policies>
 			<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" />
 					</IfFileName>
 				</Delete>