added javadocs comment and corrected logger factory input