adding log to api