Spring boot is not generated after startup log files to troubleshoot problems

My configuration is:

 

logging.file.name=spring-boot.log
logging.file.path=D:/log/

After the system startup log file does not get created

The reason: the beginning that these two properties are combined with the use of, so both are configured, the result can not find the log files generated

After careful verification, it was discovered that only these two properties on the list with a

If you configure:

logging.file.name = D: /log/spring-boot.log # in the D: / log / log file directory generates a spring-boot.log

 You do not need to configure:

logging.file.path = D: / log / # log path configuration, to generate a default name in the directory: spring.log log file

 

Remarks:

The old version of spring boot configuration file relevant attributes:

logging.file=

logging.path=

Both properties are obsolete, it is recommended to use the new property, corresponding logging.file.name and logging.file.path

 

Guess you like

Origin www.cnblogs.com/caogen1991/p/11765504.html