Doing logging correctly.