All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nkexbg.gallery-api.1.0.0.source-code.logback-spring.xml Maven / Gradle / Ivy

Go to download

There is a newer version: 1.1.1
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

    <property name="LOGS" value="./logs" />

    <appender name="GALLERY"
        class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>${LOGS}/gallery.log</file>
        <encoder
            class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <Pattern>%d %p %C{1.} [%t] %m%n</Pattern>
        </encoder>

        <rollingPolicy
            class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <!-- rollover daily and when the file reaches 50 MB -->
            <fileNamePattern>${LOGS}/archived/gallery-%d{yyyy-MM-dd}.%i.log
            </fileNamePattern>
            <timeBasedFileNamingAndTriggeringPolicy
                class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
                <maxFileSize>50MB</maxFileSize>
            </timeBasedFileNamingAndTriggeringPolicy>
        </rollingPolicy>
    </appender>
    
    <!-- LOG everything at INFO level -->
    <root level="info">
        <appender-ref ref="GALLERY" />
    </root>

</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy