Authored by wangnan

更新日志文件

... ... @@ -11,10 +11,10 @@
<!-- DEBUG、INFO、WARN、ERROR级别日志 appender -->
<appender name="DEBUG_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${yoho.logs.basedir}/${mars.search.service.env.namespace}/debug.log</file>
<file>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/debug.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${mars.search.service.env.namespace}/archived/debug.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/archived/debug.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -29,14 +29,14 @@
<!-- WARN、ERROR级别日志 appender -->
<appender name="WARN_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${yoho.logs.basedir}/${mars.search.service.env.namespace}/warn-log.log</file>
<file>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/warn-log.log</file>
<!-- 过滤器,过滤掉 TRACE 和 DEBUG 和 INFO 级别的日志 -->
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${mars.search.service.env.namespace}/archived/warn.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/archived/warn.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -52,10 +52,10 @@
<!-- HTTP请求超时 appender -->
<appender name="REQUEST_TIMEOUT" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${yoho.logs.basedir}/${yoho.search.consumer.env.namespace}/request-timeout.log</file>
<file>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/request-timeout.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${yoho.search.consumer.env.namespace}/archived/request-timeout.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/archived/request-timeout.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -70,10 +70,10 @@
<!-- 数据库超时日志 appender -->
<appender name="DATABASE_TIMEOUT" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${yoho.logs.basedir}/${mars.search.service.env.namespace}/database-timeout.log</file>
<file>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/database-timeout.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${mars.search.service.env.namespace}/archived/database-timeout.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/archived/database-timeout.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -88,10 +88,10 @@
<!-- 服务请求统计 appender -->
<appender name="REQUEST_STAT" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${yoho.logs.basedir}/${mars.search.service.env.namespace}/request-stat.log</file>
<file>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/request-stat.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${mars.search.service.env.namespace}/archived/request-stat.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/archived/request-stat.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -106,10 +106,10 @@
<!-- 全量建索引 appender -->
<appender name="INDEX_REBULDER_APPAND" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${yoho.logs.basedir}/${mars.search.service.env.namespace}/index-rebuild.log</file>
<file>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/index-rebuild.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${mars.search.service.env.namespace}/archived/index-rebuild.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/archived/index-rebuild.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ... @@ -124,10 +124,10 @@
<!-- 事件上报 appender -->
<appender name="SEARCH_EVENT_APPAND" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${yoho.logs.basedir}/${mars.search.service.env.namespace}/search-event.log</file>
<file>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/search-event.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>${yoho.logs.basedir}/${mars.search.service.env.namespace}/archived/search-event.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>${yoho.logs.basedir}/${yohomars.search.service.env.namespace}/archived/search-event.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 100MB -->
<maxFileSize>${yoho.logs.maxFileSize}</maxFileSize>
... ...