更改日志级别

This commit is contained in:
wangwei10061 2018-04-23 18:43:56 +08:00
parent c6459d11e1
commit 0e454011ef
1 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,6 @@
<property name="log_path" value="/home/ww/tomcat-bridge/logs/"/> <property name="log_path" value="/home/ww/tomcat-bridge/logs/"/>
<appender name="bridge" class="ch.qos.logback.core.rolling.RollingFileAppender"> <appender name="bridge" class="ch.qos.logback.core.rolling.RollingFileAppender">
<Encoding>UTF-8</Encoding>
<encoder> <encoder>
<pattern>%d{MM-dd HH:mm:ss} [%thread] %-5level -- %msg%n</pattern> <pattern>%d{MM-dd HH:mm:ss} [%thread] %-5level -- %msg%n</pattern>
</encoder> </encoder>
@ -11,7 +10,7 @@
<level>DEBUG</level> <level>DEBUG</level>
</filter> </filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${log_path}%d{MM-dd}.log</fileNamePattern> <fileNamePattern>${log_path}bridge.%d{yyyy-MM-dd}.log</fileNamePattern>
</rollingPolicy> </rollingPolicy>
</appender> </appender>
@ -25,7 +24,6 @@
<root> <root>
<level value="DEBUG"/> <level value="DEBUG"/>
<!--<appender-ref ref="TPM"/>-->
<appender-ref ref="bridge"/> <appender-ref ref="bridge"/>
</root> </root>