Commit 9a0e4397 authored by Quxl's avatar Quxl

x

parent cddaf543
......@@ -17,7 +17,6 @@ public class ExceptionAspect {
@AfterThrowing(throwing = "ex", pointcut = execution)
public void afterThrowing(Throwable ex) {
logger.error("未处理异常", ex);
//TODO 统一异常处理
}
}
......@@ -19,6 +19,16 @@
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder>
</appender>
<appender name="errorAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/logs/venality.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>/data/logs/sap-service/${context}-%d{yyyy-MM-dd}.err.log</FileNamePattern>
<MaxHistory>30</MaxHistory>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder>
</appender>
</sift>
</appender>
......@@ -36,6 +46,9 @@
<root level="INFO">
<appender-ref ref="siftingAppender" />
</root>
<logger name="com.egolm.sso.config.ExceptionAspect" level="ERROR">
<appender-ref ref="errorAppender" />
</logger>
</springProfile>
<!-- <logger name="com.microsoft" level="INFO" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment