logging route for ajax request