Corrected logging example