potty.spotty-core.1.0.3.source-code.logback-spring.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <configuration> <include resource="org/springframework/boot/logging/logback/base.xml"/> <springProperty scope="context" name="FILE" source="spotty.logging.action.file"/> <appender name="FILE-ACTION-LOG" class="ch.qos.logback.core.rolling.RollingFileAppender"> <encoder> <pattern>%msg%n</pattern> </encoder> <file>${FILE}</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${FILE}.%i</fileNamePattern> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <MaxFileSize>10MB</MaxFileSize> </triggeringPolicy> </appender> <appender name="ASYNC-FILE-ACTION-LOG" class="ch.qos.logback.classic.AsyncAppender"> <appender-ref ref="FILE-ACTION-LOG"/> </appender> <logger name="pl.codewise.spotty.core.logging" level="DEBUG"> <appender-ref ref="ASYNC-FILE-ACTION-LOG"/> </logger> </configuration>