format error log perform