Authored by fu

添加日志

... ... @@ -113,6 +113,28 @@
</encoder>
</appender>
<appender name="QUARTZ_TASK_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/Data_new/monitor_logs/uilog/job_log.log</file>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>DEBUG</level>
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 按天回滚 daily -->
<fileNamePattern>
/Data_new/monitor_logs/uilog/job_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>${maxFileSize}</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
<!-- 日志最大的历史 60天 -->
<maxHistory>${maxHistory}</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level - %msg%n</pattern>
</encoder>
</appender>
<!-- root级别 DEBUG -->
<root level="INFO">
... ... @@ -133,6 +155,17 @@
<appender-ref ref="BAN_IP_LOG"/>
</logger>
<logger name="org.quartz" additivity="true">
<level value="DEBUG"/>
<appender-ref ref="QUARTZ_TASK_LOG"/>
</logger>
<logger name="com.yoho.quartz" additivity="true">
<level value="DEBUG"/>
<appender-ref ref="QUARTZ_TASK_LOG"/>
</logger>
<!-- 按照每天生成日志文件 -->
<appender name="API_TEST_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/Data_new/monitor_logs/uilog/apiTest.log</file>
... ...