Add exception message to logger