Lin*_*_30 4 logging spring-boot
在我的 springboot 应用程序中,我在使用 Orbitz consul 客户端和 spring-consul 时生成了以下日志。该日志是在执行使用 Orbitz 的 consul 客户端的周期任务(每 2 分钟一次)时生成的。我想关闭以下日志,因为它们不必要地填充日志文件。
AutoConfigurationReportLoggingInitializer [pool-45-thread-1] [DEBUG] []
=========================
AUTO-CONFIGURATION REPORT
=========================
Positive matches:
-----------------
ConfigurationPropertiesRebinderAutoConfiguration matched
ConfigurationPropertiesRebinderAutoConfiguration#configurationPropertiesBeans matched
ConfigurationPropertiesRebinderAutoConfiguration#configurationPropertiesBeans matched
Negative matches:
-----------------
ConsulAutoConfiguration.RetryConfiguration did not match
EncryptionBootstrapConfiguration.RsaEncryptionConfiguration did not match
- required @ConditionalOnClass classes not found: org.springframework.security.rsa.crypto.RsaSecretEncryptor (OnClassCondition)
EncryptionBootstrapConfiguration.VanillaEncryptionConfiguration did not match
- @ConditionalOnMissing classes not found: org.springframework.security.rsa.crypto.RsaSecretEncryptor (OnClassCondition)
- Keystore nor key found in Environment (EncryptionBootstrapConfiguration.KeyCondition)
Exclusions:
-----------
None
Unconditional classes:
----------------------
None
Run Code Online (Sandbox Code Playgroud)
如果您使用的是 Logback,请为此特定包添加日志记录配置:
<logger name="org.springframework.boot.autoconfigure.logging">
<level value="INFO"/>
</logger>
Run Code Online (Sandbox Code Playgroud)
因为当前日志记录发生在 DEBUG 级别。
| 归档时间: |
|
| 查看次数: |
3975 次 |
| 最近记录: |