this code is called before any control wrt to logging / loglevel is parsed/handled. this is one of the main issues with generaloption. i'm not sure about a fix. maybe some "delayed" messaging (ie store in list, and when logger is alive, replay the messages)?