Refactored initLoggerFromOpt
Code style