inject logger class into log