Created
November 27, 2019 00:29
-
-
Save ColadaFF/b3a6d73ad0816a38c3e134613a0a2c8e to your computer and use it in GitHub Desktop.
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> | |
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<file>myapp.log</file> | |
<immediateFlush>false</immediateFlush> | |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | |
<fileNamePattern>myapp_%d{yyyy-MM-dd}.log</fileNamePattern> | |
</rollingPolicy> | |
<encoder> | |
<pattern>[%date{ISO8601}] [%level] [%logger] [%thread] [%X{akkaSource}] - %msg%n</pattern> | |
</encoder> | |
</appender> | |
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender"> | |
<queueSize>1024</queueSize> | |
<neverBlock>true</neverBlock> | |
<appender-ref ref="FILE" /> | |
</appender> | |
<root level="INFO"> | |
<appender-ref ref="ASYNC"/> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment