|
|
|
@ -20,19 +20,13 @@
|
|
|
|
|
|
|
|
|
|
<appender name="xxl-job" class="com.xxl.job.core.log.XxlJobFileAppender">
|
|
|
|
|
<param name="filePath" value="/data/applogs/xxl-job/jobhandler/"/>
|
|
|
|
|
<param name="append" value="true"/>
|
|
|
|
|
<param name="encoding" value="UTF-8"/>
|
|
|
|
|
<!--<param name="append" value="true"/>-->
|
|
|
|
|
<!--<param name="encoding" value="UTF-8"/>-->
|
|
|
|
|
<layout class="org.apache.log4j.PatternLayout">
|
|
|
|
|
<param name="ConversionPattern" value="%-d{yyyy-MM-dd HH:mm:ss} xxl-job-executor-example [%c]-[%t]-[%M]-[%L]-[%p] %m%n"/>
|
|
|
|
|
</layout>
|
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
|
|
<root>
|
|
|
|
|
<level value="INFO" />
|
|
|
|
|
<appender-ref ref="CONSOLE" />
|
|
|
|
|
<appender-ref ref="FILE" />
|
|
|
|
|
<appender-ref ref="xxl-job"/>
|
|
|
|
|
</root>
|
|
|
|
|
<logger name="com.xxl.job.core" additivity="false">
|
|
|
|
|
<level value="INFO" />
|
|
|
|
|
<appender-ref ref="CONSOLE" />
|
|
|
|
@ -45,6 +39,11 @@
|
|
|
|
|
<appender-ref ref="FILE" />
|
|
|
|
|
<appender-ref ref="xxl-job"/>
|
|
|
|
|
</logger>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<root>
|
|
|
|
|
<level value="INFO" />
|
|
|
|
|
<appender-ref ref="CONSOLE" />
|
|
|
|
|
<appender-ref ref="FILE" />
|
|
|
|
|
<appender-ref ref="xxl-job"/>
|
|
|
|
|
</root>
|
|
|
|
|
|
|
|
|
|
</log4j:configuration>
|