在application.properties / yaml的程序包级别指定logging.level
配置时,将忽略来自内部类的日志消息。在单个类的级别上,您似乎应该使用[方括号]约定来像这样包装行:package.[OuterClass$InnerClass]
,但我无法从Spring Cloud中删除该行:
INFO 39179 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
我知道该行是无害的,但是无法控制它似乎很奇怪。我已经尝试了多种模式,但是它们都不做任何事情。
logging.level.org.springframework.context.support.[PostProcessorRegistrationDelegate$BeanPostProcessorChecker]=ERROR
logging.level.[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker]=ERROR
logging.level.org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker=ERROR
logging.level.org.springframework.context.support.PostProcessorRegistrationDelegate.BeanPostProcessorChecker=ERROR
任何人都知道这些功能中的任何一个是否有效,这是一个错误,或者是否有我不知道的新约定?