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

bc.sharding-jdbc-transaction-async-job.2.0.0.M2.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <property name="log.directory" value="logs/" />
    <property name="log.system.context.name" value="system" />
    <property name="log.app.context.name" value="compensation" />
    <property name="log.charset" value="UTF-8" />
    <property name="log.maxHistory" value="30" />
    <property name="log.pattern" value="[%-5level] %date --%thread-- [%logger] %msg %n" />
    <property name="log.error.log.level" value="WARN" />
    <property name="log.async.queue.size" value="1024" />

    <contextName>${log.system.context.name}</contextName>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder charset="${log.charset}">
            <pattern>${log.pattern}</pattern>
        </encoder>
    </appender>
    <appender name="SYSTEM_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.directory}${log.system.context.name}-log.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.maxHistory}</maxHistory>
        </rollingPolicy>
        <encoder charset="${log.charset}">
            <pattern>${log.pattern}</pattern>
        </encoder>
    </appender>

    <appender name="APP_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.directory}${log.app.context.name}-log.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.maxHistory}</maxHistory>
        </rollingPolicy>
        <encoder charset="${log.charset}">
            <pattern>${log.pattern}</pattern>
        </encoder>
    </appender>
    
    <logger name="io.shardingjdbc.transaction.bed.BestEffortsDeliveryJob" level="ERROR" additivity="false">
        <appender-ref ref="APP_FILE" />
    </logger>
    
    <root>
        <level value="INFO" />
        <appender-ref ref="STDOUT" />
        <appender-ref ref="SYSTEM_FILE" />
    </root>
</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy