Update LoggerServiceFactory.php

some changes