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

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

    I was also facing same issues, since i just copied the path as windows(uses "\" in path) provide.

    Fixed just by changing : back slash ("\") to forward slash ("/") in path.

    Note: Strictly forward slash ("/") should be used in path, OS is not the constraint.

    ex:- logging.file.name=D:/Logs/server.log

提交回复
热议问题