add error class name on log