a logging example