Fixed logger for error class.