public static void Use() { #if !DEBUG || PROFILE_SVELTO #if !UNITY_EDITOR FasterUnityLoggerUtility.Init(); #endif Console.SetLogger(new FasterUnityLogger()); #endif }
static void StartQueue(object state) { Thread.Sleep(1000); //let's be sure that the first iteration doesn't happen right at the begin Thread.MemoryBarrier(); while (_quitThread == false) { OtherThreadFlushLogger(); #if !UNITY_EDITOR FasterUnityLoggerUtility.ForceFlush(); #endif Thread.Sleep(1000); } }