Add error details to logger.