Refactoring system logger initialization