send logs in api