Spring Boot - no log file written (logging.file is not respected)

前端 未结 15 1470
一向
一向 2020-12-14 00:01

I use Spring Boot and want it to write log output to a file.

According to the docs, this is simply done by setting

logging.file=filename.log
<         


        
15条回答
  •  再見小時候
    2020-12-14 01:01

    In my case, I added a file "logback.xml" in one of my sub module by mistake which caused this issue, remove it and everything will be fine.

提交回复
热议问题