added time to api_log