changed logger get instance to be private