logging the route transitions