logging example polishing