I use Spring Boot and want it to write log output to a file.
According to the docs, this is simply done by setting
logging.file=filename.log
<
I run my spring boot service using command line argument which works fine. All the spring boot console log writes to the file. I don't have any logging configured in my application.properties file. Spring boot version: 2.0.5.RELEASE
In windows:
java -jar target\microservice-0.0.1.jar --logging.file=C:\\logs\\microservice.log
In Linux
java -jar target\microservice-0.0.1.jar --logging.file=\var\log\microservice.log