1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
- <property name="log.base" value="./log/disconf-web"/>
- <property name="log.monitor" value="./log/monitor"/>
- <property resource="rabbit.properties"/>
- <jmxConfigurator/>
- <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
- <Encoding>UTF-8</Encoding>
- <encoder>
- <pattern>%X{sessionId} %date [%thread] %-5level %logger{80} - %msg%n</pattern>
- </encoder>
- </appender>
- <appender name="logfile"
- class="ch.qos.logback.core.rolling.RollingFileAppender">
- <File>${log.base}.log</File>
- <Encoding>UTF-8</Encoding>
- <rollingPolicy
- class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <FileNamePattern>${log.base}.log.%d{yyyy-MM-dd}</FileNamePattern>
- </rollingPolicy>
- <encoder>
- <pattern>%X{sessionId} %date [%thread] %-5level %logger{80} - %msg%n</pattern>
- </encoder>
- </appender>
- <appender name="monitorlog"
- class="ch.qos.logback.core.rolling.RollingFileAppender">
- <Encoding>UTF-8</Encoding>
- <File>${log.monitor}.log</File>
- <rollingPolicy
- class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <FileNamePattern>${log.base}.log.%d{yyyy-MM-dd}</FileNamePattern>
- </rollingPolicy>
- <encoder>
- <pattern>%X{sessionId} %date [%thread] %-5level %logger{80} - %msg%n</pattern>
- </encoder>
- </appender>
- <logger name="com.baidu.disconf.web.tasks">
- <level value="INFO"/>
- <appender-ref ref="monitorlog"/>
- </logger>
- <logger name="com.baidu.disconf">
- <level value="INFO"/>
- </logger>
- <logger name="org.springframework">
- <level value="INFO"/>
- </logger>
- <logger name="net.sf.ehcache">
- <level value="ERROR"/>
- </logger>
- <logger name="org.springmodules">
- <level value="ERROR"/>
- </logger>
- <root>
- <level value="INFO"/>
- <appender-ref ref="stdout"/>
- <appender-ref ref="logfile"/>
- </root>
- </configuration>
|