spring-boot log configuration logging.path logging.file Notes

From: https://blog.csdn.net/testcs_dn/article/details/86309819

springboot log configuration logging.path logging.file Notes

There may be some small partners can configure logging.path and logging.file, but they found that one does not take effect.

Official documents have such a sentence:

You want to log the Write IF Files in Addition to the Output at The Console you
need to the SET A logging.file or logging.path Property
that is, they will not take effect at the same time, the configuration in which only a fine.

For example, when I configured only specify path

logging.path = ./logs
So when logging default file name is: spring.log

Guess you like

Origin www.cnblogs.com/alexgl2008/p/12460929.html