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,23 +18,22 @@ ...@@ -19,23 +18,22 @@
<pattern>${CONSOLE_LOG_PATTERN}</pattern> <pattern>${CONSOLE_LOG_PATTERN}</pattern>
</encoder> </encoder>
</appender> </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> </sift>
</appender> </appender>
<appender name="errorAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
<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>
<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,11 +44,12 @@ ...@@ -46,11 +44,12 @@
<root level="INFO"> <root level="INFO">
<appender-ref ref="siftingAppender" /> <appender-ref ref="siftingAppender" />
</root> </root>
<logger name="com.egolm.sso.config.ExceptionAspect" level="ERROR">
<appender-ref ref="errorAppender" />
</logger>
</springProfile> </springProfile>
<logger name="com.egolm.sso.config.ExceptionAspect" level="ERROR">
<appender-ref ref="errorAppender" />
</logger>
<!-- <logger name="com.microsoft" level="INFO" /> <!-- <logger name="com.microsoft" level="INFO" />
<logger name="com.alibaba" level="INFO" /> <logger name="com.alibaba" level="INFO" />
<logger name="springfox" level="ERROR" /> <logger name="springfox" level="ERROR" />
......
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