Add log to api