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

前端 未结 15 1489
一向
一向 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 00:55

    In my case, I was using logging.file in the application property file.

    Instead, I need to used logging.file.name, since then I can be able to get the logs into the directed path file.

提交回复
热议问题