refactory LogFactory.getLogger