title: How to log logs with different log levels to different files in Dropwizard?
body: <p>So Basically what I want to do is to log logs with different logs levels like INFO DEBUG WARN etc
  to different log files.</p>
  <p>I have found something similar for slf4j <a href="https://dzone.com/articles/log4j-tutorial-%E2%80%93-writing#:%7E:text=To%20write%20different%20log%20levels%20in%20different%20log%20files&amp;text=Based%20on%20the%20level%2C%20call,every%20time%20you%20call%20it." rel="nofollow noreferrer">here</a> but dropwizard uses logback as  logging framework.</p>
  <p>Can anybody tell me how to do it in dropwizard with logback? What changes should I make in my conifg.yml file?</p>
  <pre><code> level: INFO
    loggers:
      &quot;io.dropwizard&quot;: INFO
      &quot;org.hibernate.SQL&quot;:
        level: DEBUG
        additive: false
        appenders:
          - type: file
            currentLogFilename: /var/log/myapplication-sql.log
            archivedLogFilenamePattern: /var/log/myapplication-sql-%d.log.gz
            archivedFileCount: 5
  </code></pre>