Sample uses logging