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

ibernate-plus.1.0.13.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <!-- 日志存放路径 -->
    <property name="log.path" value="./logs"/>
    <!-- 日志输出格式 -->
    <property name="log.pattern" value="%yellow(%d{HH:mm:ss.SSS}) [%cyan(%thread)] %highlight(%-5level) %logger{20} - [%method,%line] - %msg%n"/>

    <!-- 控制台输出 -->
    <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>${log.pattern}</pattern>
        </encoder>
    </appender>

    <!-- 系统 debug 级别日志输出 -->
<!--    <appender name="file_debug" class="ch.qos.logback.core.rolling.RollingFileAppender">-->
<!--        <file>${log.path}/${project.name}-debug.log</file>-->
<!--        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">-->
<!--            <fileNamePattern>${log.path}/${project.name}-debug-%d{yyyy-MM-dd}.log</fileNamePattern>-->
<!--            <maxHistory>120</maxHistory>-->
<!--        </rollingPolicy>-->
<!--        <encoder>-->
<!--            <pattern>${log.pattern}</pattern>-->
<!--        </encoder>-->
<!--        <filter class="ch.qos.logback.classic.filter.LevelFilter">-->
<!--            <level>DEBUG</level>-->
<!--            <onMatch>ACCEPT</onMatch>-->
<!--            <onMismatch>DENY</onMismatch>-->
<!--        </filter>-->
<!--    </appender>-->

    <!-- 系统 info 级别日志输出 -->
<!--    <appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">-->
<!--        <file>${log.path}/${project.name}-info.log</file>-->
<!--        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">-->
<!--            <fileNamePattern>${log.path}/${project.name}-info-%d{yyyy-MM-dd}.log</fileNamePattern>-->
<!--            <maxHistory>120</maxHistory>-->
<!--        </rollingPolicy>-->
<!--        <encoder>-->
<!--            <pattern>${log.pattern}</pattern>-->
<!--        </encoder>-->
<!--        <filter class="ch.qos.logback.classic.filter.LevelFilter">-->
<!--            <level>INFO</level>-->
<!--            <onMatch>ACCEPT</onMatch>-->
<!--            <onMismatch>DENY</onMismatch>-->
<!--        </filter>-->
<!--    </appender>-->

    <!-- 系统 error 级别日志输出 -->
<!--    <appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">-->
<!--        <file>${log.path}/${project.name}-error.log</file>-->
<!--        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">-->
<!--            <fileNamePattern>${log.path}/${project.name}-error-%d{yyyy-MM-dd}.log</fileNamePattern>-->
<!--            <maxHistory>60</maxHistory>-->
<!--        </rollingPolicy>-->
<!--        <encoder>-->
<!--            <pattern>${log.pattern}</pattern>-->
<!--        </encoder>-->
<!--        <filter class="ch.qos.logback.classic.filter.LevelFilter">-->
<!--            <level>ERROR</level>-->
<!--            <onMatch>ACCEPT</onMatch>-->
<!--            <onMismatch>DENY</onMismatch>-->
<!--        </filter>-->
<!--    </appender>-->


    <!-- 根 logger 配置 -->
    <root level="info">
        <appender-ref ref="console"/>
<!--        <appender-ref ref="file_info"/>-->
<!--        <appender-ref ref="file_error"/>-->
    </root>

</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy