Beispiel #1
0
        protected override void doLog(rcLogCategory category, string msg)
        {
            m_Messages.Add(new LogMessage(category, msg));
            if (m_Messages.Count > MAX_MESSAGES)
            {
                m_Messages.RemoveAt(0);
            }


            m_Dirty = true;

            switch (category)
            {
            case rcLogCategory.RC_LOG_ERROR:
                Debug.LogError(msg);
                break;

            case rcLogCategory.RC_LOG_WARNING:
                Debug.LogWarning(msg);
                break;

            case rcLogCategory.RC_LOG_PROGRESS:
                Debug.Log(msg);
                break;
            }
        }
Beispiel #2
0
        protected override void doLog(rcLogCategory category, string msg)
        {
            m_Messages.Add(new LogMessage(category, msg));
            if (m_Messages.Count > MAX_MESSAGES)
            {
                m_Messages.RemoveAt(0);
            }

            m_Dirty = true;
        }
Beispiel #3
0
 public LogMessage(rcLogCategory category, string msg)
 {
     m_Category = category;
     m_Message  = msg;
 }
Beispiel #4
0
 public LogMessage(rcLogCategory category, string msg)
 {
     m_Category = category;
     m_Message = msg;
 }
Beispiel #5
0
        protected override void doLog(rcLogCategory category, string msg)
        {
            m_Messages.Add(new LogMessage(category, msg));
            if (m_Messages.Count > MAX_MESSAGES){
                m_Messages.RemoveAt(0);
            }

            m_Dirty = true;
        }