Abstract internal error check for logging handler