mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-12-05 05:08:29 +08:00
339 lines
14 KiB
XML
339 lines
14 KiB
XML
|
||
<!--
|
||
~ Copyright 2019 Blockchain Technology and Application Joint Lab, Linkel Technology Co., Ltd, Beijing, Fintech Research Center of ISCAS.
|
||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||
~ you may not use this file except in compliance with the License.
|
||
~ You may obtain a copy of the License at
|
||
~
|
||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||
~
|
||
~ Unless required by applicable law or agreed to in writing, software
|
||
~ distributed under the License is distributed on an "AS IS" BA SIS,
|
||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
~ See the License for the specific language governing permissions and
|
||
~ limitations under the License.
|
||
~
|
||
-->
|
||
|
||
<!-- 配置scan和scanPeriod 让日志器定时扫描配置文件,发现日志文件修改后可以动态的调整输出内容,定期时间不宜太短,默认设置为3min-->
|
||
<configuration DEBUG="true" scan="true" scanPeriod="180000">
|
||
<appender name="Business_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-Business-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="System_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-System-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="Consensus_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-Consensus-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="Vote_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-Vote-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="BlockSyncher_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-BlockSyncher-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="Storager_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-Storager-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="StatisTime_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/StatisTime-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="OutputTime_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/OutputTime-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="Sandbox_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-Sandbox-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="TransLifeCycle_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-TransLifeCycle-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="APIAccess_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-APIAccess-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<appender name="Permission_Appender" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||
<fileNamePattern>logs/RepChain-Permission-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||
<!-- each file should be at most 100MB, keep 30 days worth of history, but at most 3GB -->
|
||
<maxFileSize>100MB</maxFileSize>
|
||
<maxHistory>30</maxHistory>
|
||
<totalSizeCap>3GB</totalSizeCap>
|
||
|
||
</rollingPolicy>
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<immediateFlush>false</immediateFlush>
|
||
<append>false</append>
|
||
<encoder charset="UTF-8">
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||
<target>System.out</target>
|
||
<!--level过滤器简化版-->
|
||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||
<level>TRACE</level>
|
||
</filter>
|
||
|
||
<encoder>
|
||
<pattern>%date{ISO8601} %-5level %logger{36} %X{akkaSource} - %msg%n</pattern>
|
||
<charset>UTF-8</charset>
|
||
</encoder>
|
||
</appender>
|
||
|
||
<!--<logger name="akka" level="INFO" />-->
|
||
|
||
<logger name="Business_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="Business_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="System_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="System_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="Consensus_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="Consensus_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="Vote_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="Vote_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="BlockSyncher_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="BlockSyncher_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="Storager_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="Storager_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="StatisTime_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="StatisTime_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="OutputTime_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="OutputTime_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="Sandbox_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="Sandbox_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="TransLifeCycle_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="TransLifeCycle_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="APIAccess_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="APIAccess_Appender"/>
|
||
</logger>
|
||
|
||
<logger name="Permission_Logger" additivity="false" level="TRACE">
|
||
<appender-ref ref="Permission_Appender"/>
|
||
</logger>
|
||
|
||
<root level="DEBUG">
|
||
<appender-ref ref="STDOUT" additivity="false"/>
|
||
</root>
|
||
</configuration> |