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

.component.2.2.2.6.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 2.2.7.1
Show newest version
<configuration>
    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <!-- encoders are assigned the type
             ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
        <encoder>
            <pattern>[:%d:] [:%-5level:] [:%thread:] [:%logger{n}:%method:%msg:]%n</pattern>
        </encoder>
    </appender>
    <appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>/data/coos/logs/${SERVER_ID}.log</file>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <maxHistory>30</maxHistory>
            <fileNamePattern>/data/coos/logs/${SERVER_ID}-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
            <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
                <maxFileSize>100MB</maxFileSize>
            </timeBasedFileNamingAndTriggeringPolicy>
        </rollingPolicy>
        <encoder>
            <pattern>[:%d:] [:%-5level:] [:%thread:] [:%logger{n}:%method:%msg:]%n</pattern>
        </encoder>
    </appender>
    <logger name="top.coos" level="DEBUG" />
    <root level="ERROR">
        <!-- <appender-ref ref="ROLLING"/> -->
        <appender-ref ref="STDOUT"/>
    </root>
</configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy