Adding Logging to Routing

use named parameters with boolean constants.