Kamil Nękanowicz
Kamil Nękanowicz

Reputation: 6572

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?

enter image description here

Upvotes: 1

Views: 852

Answers (2)

David Rabinowitz
David Rabinowitz

Reputation: 30448

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

Upvotes: 2

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.

Upvotes: 1

Related Questions