Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring-Camel (camel logs by default goes console appender)
    primarykey
    data
    text
    <p>I am facing one strange problem , I am working on one batch application using below tech STACK Spring (IOC container) , spring batch , Hibernate , camel and Log4J for logging I have configured log4J for file appender only and my all application logs goes to my log file , but strange thing is that all Camel logs goes to console appender (I have no console apender configured on my log4J properties file)</p> <p><strong>Spring – Camel Integration is XMl element :</strong></p> <pre><code> &lt;camelContext xmlns="http://camel.apache.org/schema/spring"&gt; &lt;routeBuilder ref="smtBatchRouter" /&gt; &lt;/camelContext&gt; </code></pre> <p><strong>My Log4J configuration:</strong></p> <pre><code>log4j.rootLogger=TRACE, file log4j.logger.org.apache=TRACE log4j.logger.org.directwebremoting=OFF log4j.logger.org.hibernate=OFF log4j.logger.org.springframework=WARN log4j.appender.file=org.apache.log4j.DailyRollingFileAppender log4j.appender.file.file=myapp.log log4j.appender.file.ImmediateFlush=true log4j.appender.file.bufferedIO=false log4j.appender.file.DatePattern='.' dd-MM-yyyy log4j.appender.file.layout=org.apache.log4j.PatternLayout log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n log4j.appender.file.threshold=TRACE </code></pre> <p><strong>Sample Camel Log that I am getting in console :</strong></p> <pre><code>[main] INFO org.apache.camel.spring.SpringCamelContext - Apache Camel 2.11.0 (CamelContext: camel-1) started in 4.009 seconds [Camel (camel-1) thread #0 - sftp://xyz.com/smtDataFolder] INFO org.apache.camel.component.file.remote.SftpOperations - JSCH -&gt; Connecting to localhost port 22 [Camel (camel-1) thread #0 - sftp://xyz.com/smtDataFolder] INFO org.apache.camel.component.file.remote.SftpOperations - JSCH -&gt; Connection established [Camel (camel-1) thread #0 - sftp://xyz.com/smtDataFolder] INFO org.apache.camel.component.file.remote.SftpOperations - JSCH -&gt; Remote version string: SSH-1.99-OpenSSH_4.6 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload