inject logger from outside