Extract error logging.