0

Currently the following logging is being used :

loggingLevel="ERROR" message="Exception in route while processing message ${exception.message}"/>

Looking for an alternative for exception.message so that I could print the whole stacktrace.

1 Answers1

0

Did you already try exception.stacktrace? It is available since Camel 2.6.

Documentation says: Camel 2.6. Refer to the exception.stracktrace on the exchange. Result is null if no exception set on exchange. Will fallback and grab caught exceptions (Exchange.EXCEPTION_CAUGHT) if the Exchange has any.

ShellDragon
  • 1,712
  • 2
  • 12
  • 24