hedulerx.schedulerx2-worker.1.12.1.source-code.log4j-schedulerx.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration> <appender name="RollingFile" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${user.home}/logs/schedulerx/worker.log" /> <param name="Append" value="true" /> <param name="MaxBackupIndex" value="10" /> <param name="MaxFileSize" value="250MB" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss:SSS} %-5p %c{36} - %m%n" /> </layout> </appender> <appender name="heartbeat" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${user.home}/logs/schedulerx/heartbeat.log" /> <param name="Append" value="true" /> <param name="MaxBackupIndex" value="10" /> <param name="MaxFileSize" value="200MB" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss:SSS} %-5p %c{36} - %m%n" /> </layout> </appender> <appender name="clientInfo" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${user.home}/logs/schedulerx/clientInfo.log" /> <param name="Append" value="true" /> <param name="MaxBackupIndex" value="10" /> <param name="MaxFileSize" value="200MB" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss}|%m%n" /> </layout> </appender> <appender name="timer" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${user.home}/logs/schedulerx/timer.log" /> <param name="Append" value="true" /> <param name="MaxBackupIndex" value="10" /> <param name="MaxFileSize" value="200MB" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss:SSS} %-5p %c{36} - %m%n" /> </layout> </appender> <appender name="openapi" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="${user.home}/logs/schedulerx/openapi.log" /> <param name="Append" value="true" /> <param name="MaxBackupIndex" value="5" /> <param name="MaxFileSize" value="200MB" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss:SSS} %-5p %c{36} - %m%n" /> </layout> </appender> <logger name="com.alibaba.schedulerx" additivity="false"> <level value ="INFO"/> <appender-ref ref="RollingFile"/> </logger> <logger name="heartbeat" additivity="false"> <level value ="INFO"/> <appender-ref ref="heartbeat"/> </logger> <logger name="clientInfo" additivity="false"> <level value ="INFO"/> <appender-ref ref="clientInfo"/> </logger> <logger name="openapi" additivity="false"> <level value ="INFO"/> <appender-ref ref="openapi"/> </logger> <logger name="timer" additivity="false"> <level value ="INFO"/> <appender-ref ref="timer"/> </logger> <root> <level value ="INFO"/> <appender-ref ref="RollingFile"/> </root> </log4j:configuration>