2016-07-28 21 views
2

Ich benutze Spring Boot 1.3.7.Spring Boot und Logging-Ort

In meinem application.properties Ich habe

logging.file=syste.log 
logging.path=/home/apps/log 

Meine JAR-Datei in/home/apps liegt

Zur Laufzeit Datei Anmeldung befindet, in der Anwendung ausgeführt wird (/ home/apps).

Warum wird der Wert in logging.path nicht verwendet?

Antwort

2

Nach the documentation Angabe beidelogging.file und logging.path wird nicht unterstützt (oder behandelt), können Sie den vollständigen Pfad in der logging.file Einstellung angeben sollten:

logging.file=/home/apps/log/syste.log