Made the log functions settable at runtime (for various DLL loading ways).