【发布时间】:2016-08-01 09:30:06
【问题描述】:
Spring boot 附带了几个默认的日志框架配置,包括 Log4j2。虽然 Spring boot 参考手册中有关于日志记录的详细文档,但没有提及默认日志模式的配置方式和位置,因此很难覆盖它。
问题是Spring Boot在哪里配置Log4j2的默认日志模式?
到目前为止,我已经查看了 Spring Boot 的以下几个地方:
AutoConfigurationReportLoggingInitializer
LoggingApplicationListener
SimpleFormatter
LoggingSystem
Log4J2LoggingSystem
【问题讨论】:
标签: spring-boot log4j2