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

.camelot.camelot.1.0.171.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 1.0.177
Show newest version
<configuration>
    <appender name="FILE"
        class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy
            class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <!-- daily rollover -->
            <fileNamePattern>bot_logs/log.%d{yyyy-MM-dd}.txt</fileNamePattern>

            <!-- keep 30 days' worth of history capped at 1GB total size -->
            <maxHistory>30</maxHistory>
            <totalSizeCap>1GB</totalSizeCap>
        </rollingPolicy>
        <encoder>
            <pattern>
                %nopex[%d{HH:mm:ss}] [%level] [%logger{0}/%marker]:
                %msg%n%ex
            </pattern>
        </encoder>
    </appender>
    <!--Log levels include ERROR, WARN, INFO, DEBUG, TRACE -->
    <root level="DEBUG">
        <appender-ref ref="FILE" />
    </root>

    <appender name="CONSOLE"
        class="ch.qos.logback.core.ConsoleAppender">
        <encoder
            class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <pattern>
                %d %green([%thread]) %highlight(%level)
                %logger{50}/%marker - %msg%n
            </pattern>
        </encoder>

        <!-- Filter out unneeded messages from the console -->
        <filter class="net.neoforged.camelot.util.LoggingFilter" />
    </appender>
    <!--Log levels include ERROR, WARN, INFO, DEBUG, TRACE -->
    <root level="INFO">
        <appender-ref ref="CONSOLE" />
    </root>

    <!-- Disable the annoying useless printout -->
    <logger name="org.flywaydb.core.internal.license.VersionPrinter" level="OFF" />
    <!-- Disable the duplicate logging -->
    <logger name="org.flywaydb.core.internal.database.base.BaseDatabaseType" level="OFF" />
</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy