|
|
@ -5,6 +5,8 @@ |
|
|
|
<property name="log.path" value="logs/gateway"/> |
|
|
|
|
|
|
|
<springProperty scope="context" name="appname" source="spring.application.name"/> |
|
|
|
<springProperty scope="context" name="webHook" source="dingTalk.robot.webHook"/> |
|
|
|
<springProperty scope="context" name="secret" source="dingTalk.robot.secret"/> |
|
|
|
|
|
|
|
<!-- 日志上下文名称 --> |
|
|
|
<contextName>${appname}</contextName> |
|
|
@ -131,13 +133,21 @@ |
|
|
|
<onMatch>ACCEPT</onMatch> |
|
|
|
<onMismatch>DENY</onMismatch> |
|
|
|
</filter> |
|
|
|
<!-- 此日志文档只记录ERROR级别的 发送钉钉短信 --> |
|
|
|
<filter class="com.epmet.commons.tools.filter.LogMsgSendFilter"> |
|
|
|
<level>ERROR</level> |
|
|
|
<onMatch>ACCEPT</onMatch> |
|
|
|
<onMismatch>DENY</onMismatch> |
|
|
|
<webHook>${webHook}</webHook> |
|
|
|
<secret>${secret}</secret> |
|
|
|
<appName>${appname}</appName> |
|
|
|
</filter> |
|
|
|
</appender> |
|
|
|
|
|
|
|
<!-- 开发、测试环境 --> |
|
|
|
<springProfile name="dev,test"> |
|
|
|
<springProfile name="local,dev,test"> |
|
|
|
<logger name="org.springframework.web" level="INFO"/> |
|
|
|
<logger name="org.springboot.sample" level="INFO"/> |
|
|
|
<logger name="com.epmet" level="INFO"/> |
|
|
|
<logger name="com.epmet" level="DEBUG"/> |
|
|
|
<root level="INFO"> |
|
|
|
<appender-ref ref="DEBUG_FILE"/> |
|
|
|