Moving logger back to static context until we can find a fix for the memory leak