title: Why the deployed spring boot jar shows different unnecessary messages in the log compared to development machine?
body: <p>I created an executable jar using maven &quot;mvn clean package&quot;. The jar is successfully created. When I run this jar using java -jar project.jar on my development machine following is the logs which I see (which is correct ).</p>
  <pre><code>(Expected and Correct Output)
  On Development machine:
  =======================================================
   
  2021-07-02 14:11:27 -  IP host address is : 10.80.203.28
  2021-07-02 14:11:27 -  Hostname is : DESHPANY01
  2021-07-02 14:11:27 - 10.80.203.28
  
  =============================================================
  </code></pre>
  <pre><code>Same jar On Deployed server:
  2021-07-02 11:02:24 -  IP host address is : 10.232.167.120
  2021-07-02 11:02:24 -  Hostname is : illin2189
  2021-07-02 11:02:24 - 10.232.167.120
  2021-07-02 11:05:21 - Start expire sessions StandardManager at 1625213121591 sessioncount 0
  2021-07-02 11:05:21 - End expire sessions StandardManager processingTime 1 expired sessions: 0
  2021-07-02 11:08:21 - Start expire sessions StandardManager at 1625213301594 sessioncount 0
  2021-07-02 11:08:21 - End expire sessions StandardManager processingTime 1 expired sessions: 0
  2021-07-02 11:11:21 - Start expire sessions StandardManager at 1625213481597 sessioncount 0
  2021-07-02 11:11:21 - End expire sessions StandardManager processingTime 0 expired sessions: 0
  2021-07-02 11:41:16 - Security checking request GET /logfile
  2021-07-02 11:41:16 -   No applicable constraints defined
  2021-07-02 11:41:16 - Loading persistent provider registrations from [/tmp/tomcat.6109942763391894578.9091/conf/jaspic-providers.xml]
  2021-07-02 11:41:16 -  Not subject to any constraint
  2021-07-02 11:41:16 - Initializing Spring FrameworkServlet 'dispatcherServlet'
  2021-07-02 11:41:16 -     findClass(java.lang.ObjectCustomizer)
  2021-07-02 11:41:16 -       findClassInternal(java.lang.ObjectCustomizer)
  2021-07-02 11:41:16 -     --&gt; Returning ClassNotFoundException
  2021-07-02 11:41:16 -     --&gt; Passing on ClassNotFoundException
  2021-07-02 11:41:16 -     findClass(org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolverCustomizer)
  2021-07-02 11:41:16 -       findClassInternal(org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolverCustomizer)
  2021-07-02 11:41:16 -     --&gt; Returning ClassNotFoundException
  
  2021-07-02 11:41:16 -     --&gt; Passing on ClassNotFoundException
  2021-07-02 11:41:16 -     findClass(org.springframework.web.servlet.LocaleResolverCustomizer)
  2021-07-02 11:41:16 -       findClassInternal(org.springframework.web.servlet.LocaleResolverCustomizer)
  2021-07-02 11:41:16 -     --&gt; Returning ClassNotFoundException 
  
  </code></pre>
  <p>I am using spring boot actuator and its /logfile endpoint to see the logs. I tried the --debug:false as parameter to the jar as well, but it didn't worked.</p>
  <p>Why is it showing ClassNotFoundException and StandardManager messages in my log ? I just want to show my application log messages and nothing from spring boot. How to resolve it?</p>
  <p>following is the application.properties file:</p>
  <pre><code>spring.main.log-startup-info=OFF
  logging.level.root=WARN
  logging.level.org.springframework.web=WARN
  logging.level.org.springframework=ERROR
  logging.level.org.springframework.jdbc.core = OFF
  logging.file.path=/
  logging.file=logs/recycler_logs.txt
  logging.level.com.alfred=INFO
  logging.level.com.zaxxer.hikari=OFF
  logging.level.org.apache.tomcat=ERROR
  logging.group.tomcat=org.apache.catalina, org.apache.coyote, org.apache.tomcat
  logging.level.tomcat=ERROR
  logging.level.web=ERROR
  logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss} - %msg%n
  logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n
  </code></pre>
  <p>Following is the pom.xml:
  I have mentioned packaging as jar and used boot plugin too.</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.example&lt;/groupId&gt;
      &lt;artifactId&gt;myproject&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.5.9.RELEASE&lt;/version&gt;
      &lt;/parent&gt;
  
  
      &lt;properties&gt;
          &lt;start-class&gt;com.alfred.recycler.AlfredSuspenseRecyclerApplication&lt;/start-class&gt;
          &lt;java.version&gt;1.7&lt;/java.version&gt;
  
      &lt;/properties&gt;
  
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
  
      &lt;dependencies&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;joda-time&lt;/groupId&gt;
              &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
              &lt;version&gt;2.10.10&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
              &lt;version&gt;1.5.19.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-loader-tools&lt;/artifactId&gt;
              &lt;version&gt;2.4.1&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- https://mvnrepository.com/artifact/com.oracle/ojdbc7 --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.oracle&lt;/groupId&gt;
              &lt;artifactId&gt;ojdbc7&lt;/artifactId&gt;
              &lt;version&gt;12.1.0.2&lt;/version&gt;
          &lt;/dependency&gt;
  
  
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.5.9.RELEASE&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;repackage&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>