title: How to set log level for a specific class in spring with logback.xml?
body: <p>I am trying to not log debug message in class <code>com.data.march.ClientUtils</code>. For that, I think that I can change the log level of that class in the logback.xml to <code>error</code>.</p>
  
  <p>Here is my logback.xml:</p>
  
  <pre><code>&lt;configuration&gt;
  
      &lt;appender name="dailyRollingFileAppender"
                class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
          &lt;File&gt;c:/Logs/logato.log&lt;/File&gt;
          &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
              &lt;!-- daily rollover --&gt;
              &lt;FileNamePattern&gt;c:/Logato/Data/Logs/Logato.%d{yyyy-MM-dd}.log&lt;/FileNamePattern&gt;
              &lt;!-- keep 30 days' worth of history --&gt;
              &lt;maxHistory&gt;30&lt;/maxHistory&gt;
          &lt;/rollingPolicy&gt;
          &lt;encoder&gt;
              &lt;Pattern&gt;%d{HH:mm:ss.SSS} %-5level [%thread] %logger{35} - %msg %n
              &lt;/Pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;appender name="minuteRollingFileAppender"
                class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
          &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
              &lt;!-- rollover every minute --&gt;
              &lt;FileNamePattern&gt;c:/Data/Logs/minutes/Logato-minute.%d{yyyy-MM-dd_HH-mm}.log
              &lt;/FileNamePattern&gt;
              &lt;!-- keep 30 minutes' worth of history --&gt;
              &lt;maxHistory&gt;30&lt;/maxHistory&gt;
          &lt;/rollingPolicy&gt;
          &lt;encoder&gt;
              &lt;Pattern&gt;%-4relative %-5level [%thread] %logger{35} - %msg %n
              &lt;/Pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;encoder&gt;
              &lt;Pattern&gt;.%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg %n
              &lt;/Pattern&gt;
          &lt;/encoder&gt;
          &lt;filter class="ch.qos.logback.classic.filter.ThresholdFilter"&gt;
              &lt;level&gt;TRACE&lt;/level&gt;
          &lt;/filter&gt;
      &lt;/appender&gt;
  
      &lt;logger name="org" additivity="false"&gt;
          &lt;level value="INFO"/&gt;
          &lt;appender-ref ref="dailyRollingFileAppender"/&gt;
          &lt;appender-ref ref="consoleAppender"/&gt;
      &lt;/logger&gt;
      &lt;logger name="com.data" additivity="false"&gt;
          &lt;level value="DEBUG"/&gt;
          &lt;appender-ref ref="dailyRollingFileAppender"/&gt;
          &lt;appender-ref ref="consoleAppender"/&gt;
      &lt;/logger&gt;
      &lt;logger name="org" additivity="false"&gt;
          &lt;level value="INFO"/&gt;
          &lt;appender-ref ref="dailyRollingFileAppender"/&gt;
      &lt;/logger&gt;
      &lt;logger name="com.data.march.ClientUtils" additivity="false"&gt;
          &lt;level value="ERROR"/&gt;
      &lt;/logger&gt;
      &lt;root&gt;
          &lt;level value="DEBUG"/&gt;
          &lt;appender-ref ref="consoleAppender"/&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>But my attempt failed. Do you have any idea?</p>