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

前端 未结 15 1488
一向
一向 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:38

    Check the version of the Springboot parent.

    if it is 2.3.x+ then the property should be logging.fil.name=yourapplog.log

提交回复
热议问题