here is the code,when i start application with profile dev ,but the log file auto create a empty demo-test.log,why this happen?
demo.zip
need help thanks!
Comment From: wilkinsona
log4j2-test.yml
is a well-known file name that Log4j2 will look for a load by default. This happens when Log4j2 is first initialised before Spring Boot has an opportunity to customise its configuration based on your configuration in application.yml
. You can avoid the problem by renaming log4j-test.yml
so that it's name isn't one that Log4j2 will load by default.
If you have any further questions, please follow up on Stack Overflow or Gitter. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.
Comment From: apple987
ok! thanks a lot