Log error event