简体   繁体   中英

Spring boot logging.file does not work

logging.file=logs/spring-boot-logging.log

It work localy on my machine but where can I find this file on remote server?

在此输入图像描述

The path is relative to the current directory of your processes. It is best to use a more generic place such as /var/log/<your-app>/spring-boot-logging.log

It will depend wildly on the specifics of your server configuration. Set the environment variable LOGGING_FILE or the system property logging.file to an appropriate value on your server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM