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

ework.spring-in.1.0.3.source-code.logback.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
    <property name="logs-folder" value="${catalina.base}/logs"/>
    <property name="contextName" value="framework"/>
    <contextName>${contextName}</contextName>
    <statusListener class="ch.qos.logback.core.status.NopStatusListener" />
    <appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>
                %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}:%L - %msg%n
            </pattern>
            <charset>UTF-8</charset>
        </encoder>
    </appender>

    <appender name="FileLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>${logs-folder}/${contextName}/${contextName}.log</file>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${logs-folder}/${contextName}/${contextName}-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
            <maxHistory>7</maxHistory>
            <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
                <maxFileSize>50mb</maxFileSize>
            </timeBasedFileNamingAndTriggeringPolicy>
        </rollingPolicy>
        <encoder>
            <pattern>
                %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%-5level] %logger{50}:%L - %msg%n
            </pattern>
            <charset>UTF-8</charset>
        </encoder>
    </appender>

    <logger name="ch.qos.logback" level="ERROR" additivity="false">
    </logger>

    <logger name="org.hibernate.validator" level="ERROR" additivity="false">
    </logger>

    <logger name="org.springframework" level="INFO" additivity="false">
        <appender-ref ref="Console"/>
    </logger>
    <logger name="org.apache.shiro" level="WARN" additivity="false">
        <appender-ref ref="Console"/>
    </logger>

    <root level="INFO">
        <appender-ref ref="Console"/>
    </root>

</configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy