Browse Source

日志调整

zouxuan 1 năm trước cách đây
mục cha
commit
eaebcdc6bc
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  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">
         <root level="INFO">
-            <appender-ref ref="stdout"/>
             <appender-ref ref="file"/>
         </root>
+        <root level="ERROR">
+            <appender-ref ref="plumelog"/>
+        </root>
     </springProfile>
     <!--生产环境:输出到文件 -->
     <springProfile name="pre">
         <root level="INFO">
-            <appender-ref ref="stdout"/>
             <appender-ref ref="file"/>
         </root>
+        <root level="ERROR">
+            <appender-ref ref="plumelog"/>
+        </root>
     </springProfile>
 
 </configuration>