Created
June 13, 2017 03:20
-
-
Save greenlaw110/ac76d69df802dc7da5d2315e0e8df954 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<statusListener class="ch.qos.logback.core.status.NopStatusListener" /> | |
<!-- Send debug messages to System.out --> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<!-- By default, encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder --> | |
<withJansi>true</withJansi> | |
<encoder> | |
<pattern>%date %highlight(%-5level) %cyan(%logger{5}@[%-4.30thread]) - %msg%n</pattern> | |
</encoder> | |
</appender> | |
<!-- Send debug messages to a file at "c:/jcg.log" --> | |
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<file>act.log</file> | |
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | |
<Pattern>%d{yyyy-MM-dd_HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern> | |
</encoder> | |
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> | |
<FileNamePattern>/jcg.%i.log.zip</FileNamePattern> | |
<MinIndex>1</MinIndex> | |
<MaxIndex>10</MaxIndex> | |
</rollingPolicy> | |
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> | |
<MaxFileSize>2MB</MaxFileSize> | |
</triggeringPolicy> | |
</appender> | |
<appender name="METRIC_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<file>act.metric.log</file> | |
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | |
<Pattern>%d{yyyy-MM-dd_HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern> | |
</encoder> | |
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> | |
<FileNamePattern>/jcg.%i.log.zip</FileNamePattern> | |
<MinIndex>1</MinIndex> | |
<MaxIndex>10</MaxIndex> | |
</rollingPolicy> | |
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> | |
<MaxFileSize>2MB</MaxFileSize> | |
</triggeringPolicy> | |
</appender> | |
<logger name="metric.act" level="TRACE"> | |
<appender-ref ref="METRIC_FILE" /> | |
</logger> | |
<logger name="com.mycomp.myproj" level="DEBUG" additivity="false"> | |
<appender-ref ref="FILE" /> | |
</logger> | |
<!-- By default, the level of the root level is set to DEBUG --> | |
<root level="INFO"> | |
<appender-ref ref="STDOUT" /> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment