Re: Custom logging of exceptions by file component

2013-07-04 Thread Nuno Santos
Problem solved, I found out that we can use allowRedeliveryWhileStopping() on the error handler to force shutdown of a route even with pending exchanges. So now it works nicely. Nuno -- View this message in context: http://camel.465427.n5.nabble.com/Custom-logging-of-exceptions-by-file-compone

Re: Custom logging of exceptions by file component

2013-07-04 Thread Nuno Santos
Thank you for all the answers. I solved the problem by adding an errorHandler() to the route and disabling the logging with .logStackTrace(false).logExhausted(false) Now I have a slightly different problem. When the upload to the server fails, I want to increase exponentially the timeout between

Re: Custom logging of exceptions by file component

2013-07-03 Thread Christian Müller
Check out the following links: http://camel.apache.org/exception-clause.html http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/processor/RedeliveryPolicy.html Best, Christian - Software Integration Specialist Apache Camel committer: https://camel.apache.

Re: Custom logging of exceptions by file component

2013-07-03 Thread Claus Ibsen
You can configure the logging level and verbosity on the error handler / onException. So you can just turn off stacktrace and change from ERROR to WARN or even OFF etc. On Wed, Jul 3, 2013 at 5:51 PM, Nuno Santos wrote: > Hello everyone, > > I'm using the Camel File component to monitor a direc

Re: Custom logging of exceptions by file component

2013-07-03 Thread ltsallas
Take a look at http://camel.apache.org/eventnotifier-to-log-details-about-all-sent-exchanges.html I think you can implement a custom event notifier and log everything you like when ExchangeFailedEvent occurs -- View this message in context: http://camel.465427.n5.nabble.com/Custom-loggin