First working logging example