refactor getLogger: moved to Main class