Browse Source

日志调整

zouxuan 1 year ago
parent
commit
eaebcdc6bc
1 changed files with 6 additions and 2 deletions
  1. 6 2
      mec-application/src/main/resources/logback-spring.xml

+ 6 - 2
mec-application/src/main/resources/logback-spring.xml

@@ -114,16 +114,20 @@
     <!--生产环境:输出到文件 -->
     <!--生产环境:输出到文件 -->
     <springProfile name="prod">
     <springProfile name="prod">
         <root level="INFO">
         <root level="INFO">
-            <appender-ref ref="stdout"/>
             <appender-ref ref="file"/>
             <appender-ref ref="file"/>
         </root>
         </root>
+        <root level="ERROR">
+            <appender-ref ref="plumelog"/>
+        </root>
     </springProfile>
     </springProfile>
     <!--生产环境:输出到文件 -->
     <!--生产环境:输出到文件 -->
     <springProfile name="pre">
     <springProfile name="pre">
         <root level="INFO">
         <root level="INFO">
-            <appender-ref ref="stdout"/>
             <appender-ref ref="file"/>
             <appender-ref ref="file"/>
         </root>
         </root>
+        <root level="ERROR">
+            <appender-ref ref="plumelog"/>
+        </root>
     </springProfile>
     </springProfile>
 
 
 </configuration>
 </configuration>