passed a logger into the DependencyMiddleware