Log error to output