|
|
@@ -0,0 +1,59 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<configuration> |
|
|
|
<!-- <springProperty scope="context" name="logPath" source="log.path"/>--> |
|
|
|
<property name="logPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger-%msg%n"/> |
|
|
|
|
|
|
|
<!-- 标准输出 --> |
|
|
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> |
|
|
|
<encoder> |
|
|
|
<pattern>${logPattern}</pattern> |
|
|
|
</encoder> |
|
|
|
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">–>--> |
|
|
|
<!-- <fileNamePattern>logs/jsxdemo.%d{yyyy-MM-dd}.log</fileNamePattern>--> |
|
|
|
<!-- <maxHistory>7</maxHistory>--> |
|
|
|
<!-- </rollingPolicy>--> |
|
|
|
</appender> |
|
|
|
|
|
|
|
<!-- 日志按天生成 --> |
|
|
|
<!-- <appender name="bridge" class="ch.qos.logback.core.rolling.RollingFileAppender">--> |
|
|
|
<!-- <encoder>--> |
|
|
|
<!-- <pattern>${logPattern}</pattern>--> |
|
|
|
<!-- </encoder>--> |
|
|
|
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">--> |
|
|
|
<!-- <fileNamePattern>logs/bridge.%d{yyyy-MM-dd}.log</fileNamePattern>--> |
|
|
|
<!-- <maxHistory>7</maxHistory>--> |
|
|
|
<!-- </rollingPolicy>--> |
|
|
|
<!-- </appender>--> |
|
|
|
|
|
|
|
<!-- 错误日志单独再记录,以便当前的日志分析报警 --> |
|
|
|
<!-- <appender name="error" class="ch.qos.logback.core.rolling.RollingFileAppender">--> |
|
|
|
<!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">--> |
|
|
|
<!-- <level>ERROR</level>--> |
|
|
|
<!-- </filter>--> |
|
|
|
<!-- <encoder>--> |
|
|
|
<!-- <pattern>${logPattern}</pattern>--> |
|
|
|
<!-- </encoder>--> |
|
|
|
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">--> |
|
|
|
<!-- <fileNamePattern>${logPath}/error.%d{yyyy-MM-dd}.log</fileNamePattern>--> |
|
|
|
<!-- <maxHistory>7</maxHistory>--> |
|
|
|
<!-- </rollingPolicy>--> |
|
|
|
<!-- </appender>--> |
|
|
|
|
|
|
|
<!-- 屏蔽框架输出 --> |
|
|
|
<!-- <logger name="io.swagger" level="ERROR"/>--> |
|
|
|
<!-- <logger name="ch.qos.logback" level="OFF"/>--> |
|
|
|
<!-- <logger name="com.spotify.docker.client" level="ERROR"/>--> |
|
|
|
<!-- <logger name="org.apache.ibatis" level="INFO"/>--> |
|
|
|
<!-- <logger name="tk.mybatis.mapper" level="INFO"/>--> |
|
|
|
<!-- <logger name="org.mybatis.spring" level="INFO"/>--> |
|
|
|
<!-- <logger name="com.educoder.bridge.sys.dao" level="INFO"/>--> |
|
|
|
<!-- <logger name="com.educoder.bridge.k8s.dao" level="INFO"/>--> |
|
|
|
|
|
|
|
<root> |
|
|
|
<level value="INFO"/> |
|
|
|
<!-- <appender-ref ref="bridge"/>--> |
|
|
|
<!-- <appender-ref ref="error"/>--> |
|
|
|
<appender-ref ref="STDOUT"/> |
|
|
|
</root> |
|
|
|
|
|
|
|
</configuration> |