add logging example code