logging api request