output to logging file on error