hedulerx.schedulerx2-worker.1.12.1.source-code.log4j2-schedulerx.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <Configuration status="off" monitorInterval="30"> <Properties> <Property name="LOG_FORMAT">%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{50}:%L - %msg%n</Property> <Property name="LOG_FORMAT_CLIENT_INFO">%d{yyyy-MM-dd HH:mm:ss}|%msg%n</Property> <Property name="LOG_HOME">${sys:user.home}/logs/schedulerx</Property> </Properties> <Appenders> <RollingFile name="RollingFile" fileName="${LOG_HOME}/worker.log" filePattern="${LOG_HOME}/worker.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>${LOG_FORMAT}</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy /> <SizeBasedTriggeringPolicy size="250 MB" /> </Policies> <DefaultRolloverStrategy> <Delete basePath="${LOG_HOME}/" maxDepth="1"> <IfFileName glob="worker.log.*" /> <IfAccumulatedFileCount exceeds="10" /> </Delete> </DefaultRolloverStrategy> </RollingFile> <RollingFile name="heartbeat" fileName="${LOG_HOME}/heartbeat.log" filePattern="${LOG_HOME}/heartbeat.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>${LOG_FORMAT}</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy /> <SizeBasedTriggeringPolicy size="200 MB" /> </Policies> <DefaultRolloverStrategy> <Delete basePath="${LOG_HOME}/" maxDepth="1"> <IfFileName glob="heartbeat.log.*" /> <IfAccumulatedFileCount exceeds="10" /> </Delete> </DefaultRolloverStrategy> </RollingFile> <RollingFile name="clientInfo" fileName="${LOG_HOME}/clientInfo.log" filePattern="${LOG_HOME}/clientInfo.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>${LOG_FORMAT_CLIENT_INFO}</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy /> <SizeBasedTriggeringPolicy size="200 MB" /> </Policies> <DefaultRolloverStrategy> <Delete basePath="${LOG_HOME}/" maxDepth="1"> <IfFileName glob="clientInfo.log.*" /> <IfAccumulatedFileCount exceeds="10" /> </Delete> </DefaultRolloverStrategy> </RollingFile> <RollingFile name="timer" fileName="${LOG_HOME}/timer.log" filePattern="${LOG_HOME}/timer.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>${LOG_FORMAT_CLIENT_INFO}</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy /> <SizeBasedTriggeringPolicy size="200 MB" /> </Policies> <DefaultRolloverStrategy> <Delete basePath="${LOG_HOME}/" maxDepth="1"> <IfFileName glob="timer.log.*" /> <IfAccumulatedFileCount exceeds="10" /> </Delete> </DefaultRolloverStrategy> </RollingFile> <RollingFile name="openapi" fileName="${LOG_HOME}/openapi.log" filePattern="${LOG_HOME}/openapi.log.%d{yyyy-MM-dd}.%i"> <PatternLayout> <Pattern>${LOG_FORMAT_CLIENT_INFO}</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy /> <SizeBasedTriggeringPolicy size="200 MB" /> </Policies> <DefaultRolloverStrategy> <Delete basePath="${LOG_HOME}/" maxDepth="1"> <IfFileName glob="openapi.log.*" /> <IfAccumulatedFileCount exceeds="5" /> </Delete> </DefaultRolloverStrategy> </RollingFile> </Appenders> <Loggers> <Root level="info"> <AppenderRef ref="RollingFile" /> </Root> <Logger name="heartbeat" level="info" additivity="false"> <AppenderRef ref="heartbeat" /> </Logger> <Logger name="clientInfo" level="info" additivity="false"> <AppenderRef ref="clientInfo" /> </Logger> <Logger name="openapi" level="info" additivity="false"> <AppenderRef ref="openapi" /> </Logger> <Logger name="timer" level="info" additivity="false"> <AppenderRef ref="timer" /> </Logger> </Loggers> </Configuration>