Add hook to allow logging route/action/data