[ADD] Use of factory for logger instanciation.