Ver Fonte

Merge remote-tracking branch 'origin/master'

lideyin há 5 anos atrás
pai
commit
b3d6bf2fcd
1 ficheiros alterados com 27 adições e 24 exclusões
  1. 27 24
      examcloud-core-oe-face-starter/src/main/resources/log4j2.xml

+ 27 - 24
examcloud-core-oe-face-starter/src/main/resources/log4j2.xml

@@ -11,49 +11,52 @@
 			<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}| %level | %X{TRACE_ID} - %X{CALLER} | %m | %l%n" />
 		</Console>
 		<!-- debug 日志 -->
-		<RollingFile name="DEBUG_APPENDER" fileName="./logs/debug/debug.log" filePattern="./logs/debug/debug-%d{yyyy.MM.dd.HH}-%i.log">
+		<RollingFile name="DEBUG_APPENDER" fileName="./logs/debug/debug.log"
+			filePattern="./logs/debug/debug-%d{yyyy.MM.dd.HH}-%i.log">
 			<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}| %level | %X{TRACE_ID} - %X{CALLER} | %m | %l%n" />
 			<Policies>
 				<TimeBasedTriggeringPolicy interval="1" />
 				<SizeBasedTriggeringPolicy size="100MB" />
 			</Policies>
-            <DefaultRolloverStrategy max="10000">
-                <Delete basePath="./logs/debug" maxDepth="1">
-                    <IfFileName glob="debug-*.log">
-                        <IfAccumulatedFileSize exceeds="2 GB" />
-                    </IfFileName>
-                </Delete>
-            </DefaultRolloverStrategy>
+			<DefaultRolloverStrategy max="10000">
+				<Delete basePath="./logs/debug" maxDepth="1">
+					<IfFileName glob="debug-*.log">
+						<IfAccumulatedFileSize exceeds="2 GB" />
+					</IfFileName>
+				</Delete>
+			</DefaultRolloverStrategy>
 		</RollingFile>
 		<!-- 接口日志 -->
-		<RollingFile name="INTERFACE_APPENDER" fileName="./logs/interface/interface.log" filePattern="./logs/interface/interface-%d{yyyy.MM.dd.HH}-%i.log">
+		<RollingFile name="INTERFACE_APPENDER" fileName="./logs/interface/interface.log"
+			filePattern="./logs/interface/interface-%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="100MB" />
 			</Policies>
-            <DefaultRolloverStrategy max="10000">
-                <Delete basePath="./logs/interface" maxDepth="1">
-                    <IfFileName glob="interface-*.log">
-                        <IfAccumulatedFileSize exceeds="10 GB" />
-                    </IfFileName>
-                </Delete>
-            </DefaultRolloverStrategy>
+			<DefaultRolloverStrategy max="10000">
+				<Delete basePath="./logs/interface" maxDepth="1">
+					<IfFileName glob="interface-*.log">
+						<IfAccumulatedFileSize exceeds="10 GB" />
+					</IfFileName>
+				</Delete>
+			</DefaultRolloverStrategy>
 		</RollingFile>
 		<!-- 处理照片 日志 -->
-		<RollingFile name="PROCESS_EXAM_CAPTURE_TASK_APPENDER" fileName="./logs/task/capture.log" filePattern="./logs/task/capture-%d{yyyy.MM.dd.HH}-%i.log">
+		<RollingFile name="PROCESS_EXAM_CAPTURE_TASK_APPENDER" fileName="./logs/capture/capture.log"
+			filePattern="./logs/capture/capture-%d{yyyy.MM.dd.HH}-%i.log">
 			<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}| %level | %X{TRACE_ID} - %X{CALLER} | %m | %l%n" />
 			<Policies>
 				<TimeBasedTriggeringPolicy interval="1" />
 				<SizeBasedTriggeringPolicy size="100MB" />
 			</Policies>
-            <DefaultRolloverStrategy max="10000">
-                <Delete basePath="./logs/task" maxDepth="1">
-                    <IfFileName glob="capture-*.log">
-                        <IfAccumulatedFileSize exceeds="2 GB" />
-                    </IfFileName>
-                </Delete>
-            </DefaultRolloverStrategy>
+			<DefaultRolloverStrategy max="10000">
+				<Delete basePath="./logs/capture" maxDepth="1">
+					<IfFileName glob="capture-*.log">
+						<IfAccumulatedFileSize exceeds="2 GB" />
+					</IfFileName>
+				</Delete>
+			</DefaultRolloverStrategy>
 		</RollingFile>
 	</Appenders>