title: Suppress spring-boot logs when compiling with maven
body: <p>Im looking for a solution to set log level during compile time. All the guides I can find only sets log level on runtime. 
  <a href="https://www.baeldung.com/spring-boot-changing-log-level-at-runtime" rel="nofollow noreferrer">Baeldung guide</a><a href="https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-logging" rel="nofollow noreferrer">Spring Docs</a></p>
  
  <p>We have a spring-boot application and using maven. When running </p>
  
  <pre><code>mvn clean install
  </code></pre>
  
  <p>or any other lifecycle command we get a massive amount of logs from the following packages:</p>
  
  <pre><code>o.apache.tomcat.util.digester 
  o.apache.tomcat.util.IntrospectionUtils
  </code></pre>
  
  <p>example of the output.
  <a href="https://i.stack.imgur.com/tgYAD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tgYAD.png" alt="enter image description here"></a></p>
  
  <p>is there any why to suppress logs from this packages when compiling.</p>
  
  <p>we have tried to configure the logback.</p>
  
  <pre><code>&lt;logger name="o.apache.tomcat.util" level="OFF"/&gt;
  </code></pre>
  
  <p>also tried to configure application.properties file with the same result.</p>
  
  <pre><code>logging.level.o.apache.tomcat.util=debug
  </code></pre>
  
  <p>Both this configurations work at runtime but not compile time.</p>