Test logging.