Fault-Tolerant Quantum Measurement of Error Syndromes and Logical Operators