예제 #1
0
        public void LogError()
        {
            m_idCounter++;
            string s = string.Format("id = {0} This is an error!", m_idCounter);

            if (m_isWatch)
            {
                DCWatcher.LogError(s);
            }
            else
            {
                Debug.LogError(s);
            }
        }
예제 #2
0
        public void LogWarning()
        {
            m_idCounter++;
            string s = string.Format("id = {0} This is a warning!", m_idCounter);

            if (m_isWatch)
            {
                DCWatcher.LogWarning(s);
            }
            else
            {
                Debug.LogWarning(s);
            }
        }
예제 #3
0
//		private string m_timeStamp;

        public LogEntry(LogType logType, string logString, string logStackTrace)
        {
            m_logType = logType;

            bool hasWatchFlag = false;

            m_message          = (logString != null) ? logString : "";
            m_message          = DCWatcher.RemoveWatchFlagIfHas(m_message, ref hasWatchFlag);
            m_lowercaseMessage = m_message.ToLower();
            m_shortMessage     = CreateShortMessage(m_message);

            m_isWatched  = hasWatchFlag;
            m_stackTrace = (logStackTrace != null) ? logStackTrace : "";

//			m_timeStamp = string.Format("{0:HH:mm:ss.ffff}", DateTime.Now);
        }