title: How to print exception payload within mule message flow
body: <p>I have a mule flow within which I am logging the entire payload in String format by following code snippet</p>
  
  <pre><code>&lt;logger level="ERROR" message="#[payload:java.lang.String]"/&gt;
  </code></pre>
  
  <p>Now if the error occurs there really is no need to print the entire payload. The payload object in the message is null and the exception payload is populated with the relevant exception in it.</p>
  
  <p>If I can print just the exception payload in String format, that would suffice. Does any one know how to log the exception payload from the message ?</p>