Updating other examples to use logging.