fixing static initialization order fiasco in the logging framework