Add stack trace to logged exception.