I have the following route:
onException(Exception.class)
.logExhausted(true)
.logStackTrace(true)
.logExhaustedMessageHistory(true)
.process(new MyErrorProcessor());
from(uri)
.process(new MyProcessor());
When an error occurs the logs are printed in the org.apache.camel.processor.DefaultErrorHandler log category. Is there a way to change this to a custom log category? .errorHandler() allows you to set a log category but .onException() doesn't seem to allow it.
Thanks.
You can try something like this:
You can also look up for more variables here: https://camel.apache.org/manual/latest/simple-language.html