Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I was wondering if anyone knew how to implement logging to a file in Camel? I have read of all the documentation and its still not clear to me how to accomplish it...
I have several logs in my route and I would like to log those in one location. I also want to log the exceptions that I am catching.
log4j.appender.myAppender=org.apache.log4j.RollingFileAppender
log4j.appender.myAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.myAppender.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %C | %-32.32C %4L | %m%n
log4j.appender.myAppender.file=${karaf.data}/log/myLog.log
log4j.appender.myAppender.append=true
log4j.appender.file.maxFileSize=1MB
log4j.appender.myAppender.maxBackupIndex=10
log4j.logger.myLogger=INFO,myAppender