I am using spring boot for my application and I am using default spring boot logging.
In my application.properties
, I have added file path for logging.file
,
logging.file= ${logger_path}
and my pom.xml
contains
<logger_path>/tmp/app.log</logger_path>
When I start the application, it prints the logging messages to the file at /tmp/app.log
, but the problem is it also prints the log messages on the console. I really don't understand why it is printing on console (though it is printing them to the specified file) when I have specified a log file
.
Is there any configuration to prevent spring boot from printing the log messages to console?