Implement logging for payload