Added initializer for injecting logger into services.