|
@@ -28,37 +28,6 @@
|
|
|
</encoder>
|
|
|
</appender>
|
|
|
|
|
|
- <!-- 生成 error html格式日志开始 -->
|
|
|
- <appender name="HTML" class="ch.qos.logback.core.FileAppender">
|
|
|
- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
|
- <!--设置日志级别,过滤掉info日志,只输入error日志-->
|
|
|
- <level>ERROR</level>
|
|
|
- </filter>
|
|
|
- <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
|
|
|
- <layout class="ch.qos.logback.classic.html.HTMLLayout">
|
|
|
- <pattern>%p%d%msg%M%F{32}%L</pattern>
|
|
|
- </layout>
|
|
|
- </encoder>
|
|
|
- <file>${LOG_HOME}/error-log.html</file>
|
|
|
- </appender>
|
|
|
- <!-- 生成 error html格式日志结束 -->
|
|
|
-
|
|
|
- <!-- 每天生成一个html格式的日志开始 -->
|
|
|
- <appender name="FILE_HTML" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
|
- <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
|
- <!--日志文件输出的文件名 -->
|
|
|
- <FileNamePattern>${LOG_HOME}/jeecgboot-%d{yyyy-MM-dd}.%i.html</FileNamePattern>
|
|
|
- <!--日志文件保留天数 -->
|
|
|
- <MaxHistory>30</MaxHistory>
|
|
|
- <MaxFileSize>10MB</MaxFileSize>
|
|
|
- </rollingPolicy>
|
|
|
- <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
|
|
|
- <layout class="ch.qos.logback.classic.html.HTMLLayout">
|
|
|
- <pattern>%p%d%msg%M%F{32}%L</pattern>
|
|
|
- </layout>
|
|
|
- </encoder>
|
|
|
- </appender>
|
|
|
- <!-- 每天生成一个html格式的日志结束 -->
|
|
|
|
|
|
<!--myibatis log configure -->
|
|
|
<logger name="com.apache.ibatis" level="ERROR" />
|
|
@@ -70,8 +39,6 @@
|
|
|
<root level="INFO">
|
|
|
<appender-ref ref="STDOUT" />
|
|
|
<appender-ref ref="FILE" />
|
|
|
- <appender-ref ref="HTML" />
|
|
|
- <appender-ref ref="FILE_HTML" />
|
|
|
</root>
|
|
|
|
|
|
</configuration>
|