I have set the logging level in the spring boot application in application.yml as: logging.level.com.Myapplicationname=DEBUG
The application is packaged and deplo
for those who are using spring boot 2.2.x you need to put this in configuration file
logging.file.name='/var/log/app.log'
or use this
logging.file.path='/var/log'
note that if you use logging.file.path it will writes spring.log to the specified directory. Names can be an exact location or relative to the current directory