title: How to set my Apache camel log level to ERROR Using logback.xml
body: <p>I am working on performance testing of <strong>Apache camel</strong>, so far i am able to run <strong><em>logback async</em></strong> to gain some speed, </p>
  
  <p>Is there anyway to disable even the <strong>INFO</strong> of camel-context at starting my route.</p>
  
  <p><strong>logback.xml:</strong></p>
  
  <p>And my logback.xml configuration is,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;configuration debug="false" scan="false"&gt;
      &lt;statusListener class="ch.qos.logback.core.status.NopStatusListener" /&gt;
  
      &lt;!-- To show the log in console --&gt;
      &lt;appender name="OUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;prudent&gt;true&lt;/prudent&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;/appender&gt;
  
      &lt;logger name="org.apache.catalina.core" level="INFO" /&gt;
  
      &lt;!-- DEBUG Config --&gt;
      &lt;logger name="logs_debug" level="DEBUG" additivity="false"&gt;
          &lt;appender-ref ref="OUT" /&gt;
      &lt;/logger&gt;
  
      &lt;!-- INFO Config --&gt;
      &lt;logger name="logs_info" level="INFO" additivity="false"&gt;
          &lt;appender-ref ref="OUT" /&gt;
      &lt;/logger&gt;
  
      &lt;!-- ERROR Config --&gt;
      &lt;logger name="logs_error" level="ERROR" additivity="false"&gt;
          &lt;appender-ref ref="OUT" /&gt;
      &lt;/logger&gt;
  
      &lt;!-- To make the Logback ASYNC --&gt;
      &lt;appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender"&gt;
          &lt;includeCallerData&gt;true&lt;/includeCallerData&gt;
          &lt;queueSize&gt;500&lt;/queueSize&gt;
          &lt;discardingThreshold&gt;2&lt;/discardingThreshold&gt;
          &lt;appender-ref ref="OUT" /&gt;
      &lt;/appender&gt;
  
      &lt;!-- root Logback --&gt;
      &lt;root level="ERROR"&gt;
          &lt;appender-ref ref="ASYNC" /&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong><em>And i get this response.</em></strong></p>
  
  <pre><code>[INFO] Scanning for projects...
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building roi-asynlogback 0.0.1-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ roi-customlogback ---
      [INFO] Deleting /home/bizruntime/BizRuntime/Maven/log4j/roi-customlogback/target
      [INFO] 
      [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ roi-customlogback ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ roi-customlogback ---
      [INFO] Compiling 7 source files to /home/bizruntime/BizRuntime/Maven/log4j/roi-customlogback/target/classes
      [INFO] 
      [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ roi-customlogback ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/bizruntime/BizRuntime/Maven/log4j/roi-customlogback/src/test/resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ roi-customlogback ---
      [INFO] Not compiling test sources
      [INFO] 
      [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ roi-customlogback ---
      [INFO] Tests are skipped.
      [INFO] 
      [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ roi-customlogback ---
      [INFO] Building jar: /home/bizruntime/BizRuntime/Maven/log4j/roi-customlogback/target/roi-customlogback-0.0.1-SNAPSHOT.jar
      [INFO] 
      [INFO] &gt;&gt;&gt; camel-maven-plugin:2.13.2:run (default-cli) @ roi-customlogback &gt;&gt;&gt;
      [INFO] 
      [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ roi-customlogback ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ roi-customlogback ---
      [INFO] Nothing to compile - all classes are up to date
      [INFO] 
      [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ roi-customlogback ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/bizruntime/BizRuntime/Maven/log4j/roi-customlogback/src/test/resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ roi-customlogback ---
      [INFO] Not compiling test sources
      [INFO] 
      [INFO] &lt;&lt;&lt; camel-maven-plugin:2.13.2:run (default-cli) @ roi-customlogback &lt;&lt;&lt;
      [INFO] 
      [INFO] --- camel-maven-plugin:2.13.2:run (default-cli) @ roi-customlogback ---
      [INFO] Using org.apache.camel.spring.Main to initiate a CamelContext
      [INFO] Starting Camel ...
      Jun 01, 2016 5:26:05 PM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
      INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@47262043: startup date [Wed Jun 01 17:26:05 IST 2016]; root of context hierarchy
      Jun 01, 2016 5:26:05 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
      INFO: Loading XML bean definitions from file [/home/bizruntime/BizRuntime/Maven/log4j/roi-customlogback/target/classes/META-INF/spring/camel-context.xml]
      Jun 01, 2016 5:26:06 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
      INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5918a58d: defining beans [logFormatter,log,addempdetails,customlogback,template,consumerTemplate,camel-1:beanPostProcessor,camel-1]; root of factory hierarchy
      Jun 01, 2016 5:26:07 PM org.restlet.engine.connector.ServerConnectionHelper start
      INFO: Starting the internal [HTTP/1.1] server on port 9090
  </code></pre>