...
|
...
|
@@ -288,6 +288,24 @@ |
|
|
</encoder>
|
|
|
</appender>
|
|
|
|
|
|
<appender name="QUARTZ_TASK_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
|
<file>${yoho.logs.basedir}/${yohobuy.pfcms.env.namespace}/quartz-log.log</file>
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
<!-- daily rollover -->
|
|
|
<fileNamePattern>${yoho.logs.basedir}/${yohobuy.pfcms.env.namespace}/archived/quartz/quartz-log-.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
|
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
<!-- or whenever the file size reaches 100MB -->
|
|
|
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
|
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
|
|
<!-- keep 30 days' worth of history -->
|
|
|
<maxHistory>${yoho.logs.maxHistory}</maxHistory>
|
|
|
</rollingPolicy>
|
|
|
<encoder>
|
|
|
<pattern>%-1relative - %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{0}:%line -- %msg%n</pattern>
|
|
|
</encoder>
|
|
|
</appender>
|
|
|
|
|
|
|
|
|
<!-- 数据库操作日志 -->
|
|
|
<logger name="java.sql.PreparedStatement" value="${yoho.logs.level}"/>
|
|
|
<logger name="java.sql.Connection" value="${yoho.logs.level}"/>
|
...
|
...
|
@@ -367,4 +385,11 @@ |
|
|
<level value="INFO"/>
|
|
|
<appender-ref ref="ERP_LOG"/>
|
|
|
</logger>
|
|
|
|
|
|
<logger name="org.quartz" additivity="false">
|
|
|
<level value="INFO"/>
|
|
|
<appender-ref ref="QUARTZ_TASK_LOG"/>
|
|
|
</logger>
|
|
|
|
|
|
|
|
|
</configuration> |
|
|
\ No newline at end of file |
...
|
...
|
|