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 <
logging.file=filename.log
Check the version of the Springboot parent.
if it is 2.3.x+ then the property should be logging.fil.name=yourapplog.log