日志格式调整

v1.3
xueli.xue 9 years ago
parent 4b2b6d8256
commit 83c7e23d77

@ -9,7 +9,7 @@
</layout> </layout>
</appender> </appender>
<appender name="ROOT" class="org.apache.log4j.DailyRollingFileAppender"> <appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
<param name="file" value="/logs/xxl-job-client-demo.log"/> <param name="file" value="/logs/xxl-job-client-demo.log"/>
<param name="append" value="true"/> <param name="append" value="true"/>
<param name="encoding" value="UTF-8"/> <param name="encoding" value="UTF-8"/>
@ -27,20 +27,23 @@
</layout> </layout>
</appender> </appender>
<root>
<level value="INFO" />
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
<appender-ref ref="xxl-job"/>
</root>
<logger name="com.xxl.job.service.handler" additivity="false"> <logger name="com.xxl.job.service.handler" additivity="false">
<level value="INFO" /> <level value="INFO" />
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
<appender-ref ref="xxl-job"/> <appender-ref ref="xxl-job"/>
</logger> </logger>
<logger name="com.xxl.job.client" additivity="false"> <logger name="com.xxl.job.client" additivity="false">
<level value="INFO" /> <level value="INFO" />
<appender-ref ref="xxl-job"/>
</logger>
<root>
<level value="INFO" />
<appender-ref ref="CONSOLE" /> <appender-ref ref="CONSOLE" />
<appender-ref ref="ROOT" /> <appender-ref ref="FILE" />
<appender-ref ref="xxl-job"/> <appender-ref ref="xxl-job"/>
</root> </logger>
</log4j:configuration> </log4j:configuration>
Loading…
Cancel
Save