I tried to use logging.file.name=springboot.log
to set my log file, but no log file would written. But it's very confusing that springboot.txt
works. This following is my settings in application.properties
:
logging.level.com.demo=trace
# For the following files, I just keep one and comment the others
logging.file.name=springboot.yml # Works
logging.file.name=springboot.xml # Works
logging.file.name=springboot.txt # Works
logging.file.name=springboot.log # Does not work
logging.file.name=logging/springboot.yml # Works
logging.file.name=logging/springboot.log # Does not work