Added request logging to API