Add logging to cart.