title: How to set up the spring boot logger to scheduled tasks only?
body: <p>I have a spring boot project, so I set up the hibernate logger to log all queries in a request like this:</p>
  <p>In my application.properties file</p>
  <pre><code>logging.level.org.hibernate.type=trace
  logging.level.org.hibernate.SQL=debug
  logging.level.org.hibernate.type.descriptor.sql.BasicBinder=trace
  </code></pre>
  <p>This works fine, All my requests show the log for the hibernate queries.</p>
  <p>But I also have a scheduled task to run every one second like this:</p>
  <pre><code>@Scheduled(cron = &quot;${* * * * * *}&quot;)
  public void task() {
    ...
  }
  </code></pre>
  <p>So, I want to turn off the hibernate queries log only for this task execution to avoid
  mess up my requests output log.</p>
  <p>How can I set up the logger to do this?! Thanks.</p>