提交 860534d9 编写于 作者: 如梦技术's avatar 如梦技术 🐛

mica-logging root 日志默认 info 级别。

上级 5834b76f
......@@ -4,6 +4,7 @@
<!-- 服务名 -->
<springProperty scope="context" name="appName" source="spring.application.name"/>
<springProperty scope="context" name="logDir" source="logging.file.path" defaultValue="logs"/>
<springProperty scope="context" name="loggingLevelRoot" source="logging.level.root" defaultValue="INFO"/>
<!-- 默认 jar 包同级目录 logs/appName/all.log, 外部可配置 LOG_PATH -->
<property name="LOG_FILE" value="${logDir:-logs}/${appName}/all.log"/>
<property name="LOG_ERROR_FILE" value="${logDir:-logs}/${appName}/error.log"/>
......@@ -11,7 +12,7 @@
<include resource="org/springframework/boot/logging/logback/file-appender.xml" />
<include resource="file-error.xml" />
<root level="${logging.level.root}">
<root level="${loggingLevelRoot}">
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
<appender-ref ref="FILE_ERROR"/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册