Implement logging for experiments.