t.correomqtt-client.0.10.1.source-code.logback.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of correomqtt-client Show documentation
Show all versions of correomqtt-client Show documentation
A modern graphical MQTT client using the HiveMQ client library.
<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>