Added --log-error option