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

t.correomqtt-client.0.10.1.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 0.14.99
Show newest version
<configuration>

    <property name="PATTERN"
              value="%date{'HH:mm:ss,SSS'};%5.5level;%30.30logger;%15.15thread;%15.15marker;%0.0throwable%msg%xThrowable{full}%n"/>
    <property name="GUIPATTERN"
              value="%date{'HH:mm:ss,SSS'} [%5.-5level] [%15.15logger{15}] [%-10.-10marker] %0.0throwable%msg%xThrowable{full}%n"/>
    <property name="COLORPATTERN"
              value="%cyan(%date{'HH:mm:ss,SSS'});%highlight(%5.5level);%yellow(%30.30logger);%magenta(%15.15thread);%magenta(%15.15marker);%0.0throwable%highlight(%0.0level%msg%xThrowable{full}%n)"/>

    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <pattern>${COLORPATTERN}</pattern>
        </encoder>
    </appender>

    <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>${correomqtt-logfile:-}correomqtt.log</file>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${correomqtt-logfile:-}correomqtt.%d{yyyy-MM-dd}.log.zip</fileNamePattern>
            <maxHistory>30</maxHistory>
        </rollingPolicy>
        <encoder>
            <pattern>${PATTERN}</pattern>
        </encoder>
    </appender>

    <appender name="GUI" class="org.correomqtt.business.dispatcher.LogDispatchAppender">
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <pattern>${GUIPATTERN}</pattern>
        </encoder>
    </appender>

    <logger name="org.correomqtt" level="DEBUG" additivity="false">
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="FILE"/>
        <appender-ref ref="GUI"/>
    </logger>

    <root level="INFO">
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="FILE"/>
        <appender-ref ref="GUI"/>
    </root>
</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy