logging of API