I have a mule stream inside which I register all the payload in String format, following the code snippet
<logger level="ERROR" message="#[payload:java.lang.String]"/>
Now, if an error occurs, there really is no need to print the entire payload. The payload object in the message is zero, and the exception payload is populated with the corresponding exception in it.
If I can only print the exception payload in String format, that would be enough. Does anyone know how to register the exception payload from a message?
source
share