Added factory to create logger instances