adds logging to the router