Esempio n. 1
0
        public void logout(string message, LogColor type = LogColor.LOG)
        {
        #if THREAD_CALLCHECK
            MThread.needMainThread();
        #endif

            if (m_bOutLog)
            {
                foreach (LogDeviceBase logDevice in m_logDeviceList)
                {
                    logDevice.logout(message, type);
                }
            }
        }
Esempio n. 2
0
        public void updateLog()
        {
        #if THREAD_CALLCHECK
            MThread.needMainThread();
        #endif

            while ((m_tmpStr = m_asyncLogList.RemoveAt(0)) != default(string))
            {
                logout(m_tmpStr, LogColor.LOG);
            }

            while ((m_tmpStr = m_asyncWarnList.RemoveAt(0)) != default(string))
            {
                logout(m_tmpStr, LogColor.LOG);
            }

            while ((m_tmpStr = m_asyncErrorList.RemoveAt(0)) != default(string))
            {
                logout(m_tmpStr, LogColor.LOG);
            }
        }