added logging example