withCause

public abstract API withCause(@Nullable() @Nullable() Throwable cause)

Associates a Throwable instance with the current log statement, to be interpreted as the cause of this statement. Typically this method will be used from within catch blocks to log the caught exception or error. If the cause is null then this method has no effect.

If this method is called multiple times for a single log statement, the last invocation will take precedence.