shaonan666 commented on issue #3569: URL: https://github.com/apache/logging-log4j2/issues/3569#issuecomment-2753680745
Hi @ppkarwasz This is my `log4j2.xml `configuration file. Could you please review it for me? ```xml <?xml version="1.0" encoding="UTF-8"?> <Configuration status="INFO"> <properties> <Property name="log4j2.path" value="${sys:logging.path:-@logging.path@}"/> <Property name="log4j2.immediateFlush" value="${sys:logging.immediateFlush:-@logging.immediateFlush@}"/> <Property name="log4j2.level" value="${sys:logging.level:-@logging.level@}"/> <Property name="log4j2.max.file.size" value="xxxMB"/> <Property name="log4j2.max.file.count" value="xxx"/> <Property name="log4j2.max.file.time" value="xxx"/> <Property name="PID">????</Property> <Property name="LOG_EXCEPTION_CONVERSION_WORD">%xwEx</Property> <Property name="LOG_LEVEL_PATTERN">%5p</Property> <Property name="LOG_DATEFORMAT_PATTERN">yyyy-MM-dd HH:mm:ss.SSS</Property> <Property name="CONSOLE_LOG_PATTERN">xxxx</Property> <Property name="FILE_LOG_PATTERN">xxx</Property> </properties> <Appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="${CONSOLE_LOG_PATTERN}"/> </Console> <RollingRandomAccessFile name="FILE_INFO" fileName="${log4j2.path}/info.log" filePattern="${log4j2.path}/archive/history_info-%d{yyyy-MM-dd}.%i.zip" immediateFlush="${log4j2.immediateFlush}"> <PatternLayout pattern="${FILE_LOG_PATTERN}"/> <Policies> <TimeBasedTriggeringPolicy interval="1" modulate="true"/> <SizeBasedTriggeringPolicy size="${log4j2.max.file.size}"/> </Policies> <DefaultRolloverStrategy max="${log4j2.max.file.count}"> <Delete basePath="${log4j2.path}/archive/" maxDepth="2"> <IfFileName glob="*.zip"/> <IfLastModified age="${log4j2.max.file.time}"/> </Delete> </DefaultRolloverStrategy> </RollingRandomAccessFile> <RollingRandomAccessFile name="FILE_ERROR" fileName="${log4j2.path}/error.log" filePattern="${log4j2.path}/archive/history_error-%d{yyyy-MM-dd}.%i.zip" immediateFlush="${log4j2.immediateFlush}"> <Filters> <ThresholdFilter level="WARN" onMatch="ACCEPT" onMismatch="DENY"/> </Filters> <PatternLayout pattern="${FILE_LOG_PATTERN}"/> <Policies> <TimeBasedTriggeringPolicy interval="1" modulate="true"/> <SizeBasedTriggeringPolicy size="${log4j2.max.file.size}"/> </Policies> <DefaultRolloverStrategy max="${log4j2.max.file.count}"> <Delete basePath="${log4j2.path}/archive/" maxDepth="2"> <IfFileName glob="*.zip"/> <IfLastModified age="${log4j2.max.file.time}"/> </Delete> </DefaultRolloverStrategy> </RollingRandomAccessFile> </Appenders> <Loggers> <Root level="${log4j2.level}" includeLocation="false"> <AppenderRef ref="Console"/> <AppenderRef ref="FILE_INFO"/> <AppenderRef ref="FILE_ERROR"/> </Root> </Loggers> </Configuration> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org