Implement logging by console for api usage