make sure to create logger object before anything else