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