123456789101112131415161718192021222324252627282930313233343536373839 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <configuration>
- <!-- 输出日志到文件
- <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
- <file>api.log</file>
- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
- <FileNamePattern>api.%d{yyyy-MM-dd}.log</FileNamePattern>
- </rollingPolicy>
- <encoder>
- <Pattern>[%date{yyyy-MM-dd HH:mm:ss}][%-5level][%file:%line] %msg%n</Pattern>
- </encoder>
- </appender>
- -->
- <!-- 输出日志到控制台-->
- <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
- <encoder>
- <pattern>%d{HH:mm:ss}[%-5level][%file:%line] %msg%n</pattern>
- </encoder>
- </appender>
-
- <!--
- <logger name="com.zdsoft.fortunet" level="DEBUG"/>
- <logger name="org.springframework" level="DEBUG"/>
- <logger name="org.apache.shiro" level="DEBUG"/>
- <root level="DEBUG">
- <appender-ref ref="FILE" />
- </root>
- -->
- <root level="ERROR">
- <appender-ref ref="STDOUT" />
- </root>
- <logger name="com.zdsoft" level="DEBUG"/>
- <!--additivity禁止向上传递-->
- <logger name="com.zdsoft.fortunet.model.dao" level="ERROR" additivity="false"/>
- <logger name="com.zdsoft.rock.common.model.dao" level="ERROR" additivity="false"/>
-
- </configuration>
|