add logging example