add initOnce function to Logger