Inject logger directly for test