在我的application.yml文件中,我有:
logging:
config: classpath:log4j2.debug.yml
还有一些其他的不同配置。当我启动应用程序时,我会看到以下信息:
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
如果我把log4j2.xml放在配置文件旁边,它就能正常工作。所以我认为这是我缺少依赖项或者log4j2不支持这样的操作?参考:Boot Logging Level说像我尝试的这样做应该是可能的?