How can I set the logging path relative to tomcat dir /logs/mylog.log
?
What I tried: changing the logging.file
property in application.properties
leaving the filename out: #logging.file=
-> everything is logged to console, thus written into tomcat/logs/localhost.yyyy-mm-dd.log
logging.file=mylog.log
-> written to console, thus same as #logging.file
logging.file=d:/mylog.log
-> written to the location d:/mylog.log
logging.file=../logs/mylog.log
-> written to console, thus still to localhost*.log
None was successful. I'm not interested in externalising the configuration eg by providing system or environment variables.