예제 #1
0
        public static void Use()
        {
#if !DEBUG || PROFILE_SVELTO
#if !UNITY_EDITOR
            FasterUnityLoggerUtility.Init();
#endif
            Console.SetLogger(new FasterUnityLogger());
#endif
        }
예제 #2
0
        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);
            }
        }