Add exception class and message to log.