moved logger from static field in config to factory