如何配置 Spring Cloud 日志记录?

问题描述

我有一个带有 Spring Cloud 组件的 Spring Boot 应用程序,即 org.springframework.cloud:spring-cloud-starter-aws-parameter-store-config

当应用程序启动时,该组件会在 WARN 级别生成日志,我想取消该日志。

application.yml like 中设置日志级别

logging:
  level:
    org.springframework.cloud.aws.paramstore.AwsParamStorePropertySourceLocator: ERROR

没有用。显然是因为这个 cloud 组件在 Spring Boot 上下文启动和读取 application.yml 之前的引导时间工作。

如何以最佳方式抑制此组件日志?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)