config.logging.logback-appenders.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <included> <!-- Properties --> <include resource="config/logging/logback-properties.xml" /> <!-- Console appender --> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <layout class="ch.qos.logback.classic.PatternLayout"> <Pattern>${LOG_PATTERN}</Pattern> </layout> </appender> <!-- Main log file --> <appender name="MAIN_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${ROOT_LOG_DIR}/bull-map-transformer.log</file> <append>true</append> <encoder> <charset>UTF-8</charset> <pattern>${LOG_PATTERN}</pattern> </encoder> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${ROOT_LOG_DIR}/bull-map-transformer-%d{yyyy-MM-dd}-%i.log.zip </fileNamePattern> <maxHistory>30</maxHistory> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <maxFileSize>5MB</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> </rollingPolicy> </appender> </included>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy