Commit 51660535 authored by Quxl's avatar Quxl

x

parent 9a0e4397
...@@ -9,8 +9,7 @@ ...@@ -9,8 +9,7 @@
<DefaultValue>logback</DefaultValue> <DefaultValue>logback</DefaultValue>
</discriminator> </discriminator>
<sift> <sift>
<appender name="rollingFileAppender" <appender name="rollingFileAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>/data/logs/sap-service/${context}-%d{yyyy-MM-dd}.log</FileNamePattern> <FileNamePattern>/data/logs/sap-service/${context}-%d{yyyy-MM-dd}.log</FileNamePattern>
<MaxHistory>30</MaxHistory> <MaxHistory>30</MaxHistory>
...@@ -19,8 +18,10 @@ ...@@ -19,8 +18,10 @@
<pattern>${CONSOLE_LOG_PATTERN}</pattern> <pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder> </encoder>
</appender> </appender>
</sift>
</appender>
<appender name="errorAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"> <appender name="errorAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/logs/venality.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>/data/logs/sap-service/${context}-%d{yyyy-MM-dd}.err.log</FileNamePattern> <FileNamePattern>/data/logs/sap-service/${context}-%d{yyyy-MM-dd}.err.log</FileNamePattern>
<MaxHistory>30</MaxHistory> <MaxHistory>30</MaxHistory>
...@@ -29,13 +30,10 @@ ...@@ -29,13 +30,10 @@
<pattern>${CONSOLE_LOG_PATTERN}</pattern> <pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder> </encoder>
</appender> </appender>
</sift>
</appender>
<root level="INFO"> <root level="INFO">
<appender-ref ref="siftingAppender" /> <appender-ref ref="siftingAppender" />
</root> </root>
<springProfile name="dev"> <springProfile name="dev">
<root level="INFO"> <root level="INFO">
<appender-ref ref="siftingAppender" /> <appender-ref ref="siftingAppender" />
...@@ -46,10 +44,11 @@ ...@@ -46,10 +44,11 @@
<root level="INFO"> <root level="INFO">
<appender-ref ref="siftingAppender" /> <appender-ref ref="siftingAppender" />
</root> </root>
</springProfile>
<logger name="com.egolm.sso.config.ExceptionAspect" level="ERROR"> <logger name="com.egolm.sso.config.ExceptionAspect" level="ERROR">
<appender-ref ref="errorAppender" /> <appender-ref ref="errorAppender" />
</logger> </logger>
</springProfile>
<!-- <logger name="com.microsoft" level="INFO" /> <!-- <logger name="com.microsoft" level="INFO" />
<logger name="com.alibaba" level="INFO" /> <logger name="com.alibaba" 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