updating api_logger implemenation