LogFactory refactoring.