parent
440116e67e
commit
ee1e32ddf3
3 changed files with 29 additions and 11 deletions
@ -1,10 +0,0 @@ |
||||
log4j.rootLogger=info,console,logFile |
||||
|
||||
log4j.appender.console=org.apache.log4j.ConsoleAppender |
||||
log4j.appender.console.layout=org.apache.log4j.PatternLayout |
||||
log4j.appender.console.layout.ConversionPattern=%d - xxl-job-admin - %p [%c] - <%m>%n |
||||
|
||||
log4j.appender.logFile=org.apache.log4j.DailyRollingFileAppender |
||||
log4j.appender.logFile.File=/data/applogs/xxl-job/xxl-job-admin.log |
||||
log4j.appender.logFile.layout=org.apache.log4j.PatternLayout |
||||
log4j.appender.logFile.layout.ConversionPattern=%d - xxl-job-admin - %p [%c] - <%m>%n |
@ -0,0 +1,27 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j Configuration//EN" "log4j.dtd"> |
||||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" threshold="null" debug="null"> |
||||
|
||||
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> |
||||
<param name="Target" value="System.out" /> |
||||
<layout class="org.apache.log4j.PatternLayout"> |
||||
<param name="ConversionPattern" value="%-d{yyyy-MM-dd HH:mm:ss} xxl-job-admin [%c]-[%t]-[%M]-[%L]-[%p] %m%n"/> |
||||
</layout> |
||||
</appender> |
||||
|
||||
<appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender"> |
||||
<param name="file" value="/data/applogs/xxl-job/xxl-job-admin.log"/> |
||||
<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-admin [%c]-[%t]-[%M]-[%L]-[%p] %m%n"/> |
||||
</layout> |
||||
</appender> |
||||
|
||||
<root> |
||||
<level value="INFO" /> |
||||
<appender-ref ref="CONSOLE" /> |
||||
<appender-ref ref="FILE" /> |
||||
</root> |
||||
|
||||
</log4j:configuration> |
Loading…
Reference in new issue