Created
December 28, 2017 14:54
-
-
Save vsuharnikov/5e7b45641e1a0d923425c69c80534401 to your computer and use it in GitHub Desktop.
Size and time rolled logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/> | |
<property name="default.pattern" value="%date{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%.15thread] %logger{26} - %msg%n"/> | |
<property name="logback.file.final-directory" value="${logback.file.directory:-${waves.directory}/log}"/> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<target>System.out</target> | |
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | |
<level>${logback.stdout.level:-INFO}</level> | |
</filter> | |
<encoder> | |
<pattern>${logback.pattern:-${default.pattern}}</pattern> | |
</encoder> | |
</appender> | |
<appender name="FILE" class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | |
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | |
<level>${logback.file.level:-DEBUG}</level> | |
</filter> | |
<file>${logback.file.final-directory}/waves.log</file> | |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | |
<fileNamePattern>${logback.file.final-directory}/waves.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern> | |
<maxFileSize>200MB</maxFileSize> | |
<maxHistory>30</maxHistory> | |
<totalSizeCap>1GB</totalSizeCap> | |
</rollingPolicy> | |
<encoder> | |
<pattern>${logback.pattern:-${default.pattern}}</pattern> | |
</encoder> | |
</appender> | |
<logger name="io.netty" level="INFO"/> | |
<logger name="com.wavesplatform.network.PeerSynchronizer" level="DEBUG"/> | |
<logger name="com.wavesplatform.state2.StateWriterImpl" level="DEBUG"/> | |
<logger name="io.swagger" level="INFO"/> | |
<logger name="org.asynchttpclient" level="INFO"/> | |
<logger name="sun.rmi" level="INFO"/> | |
<logger name="javax.management" level="INFO"/> | |
<root level="TRACE"> | |
<appender-ref ref="STDOUT"/> | |
<appender-ref ref="FILE"/> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment