示例#1
0
        public void AddEntryToLog(string logEntry, ConsoleEntryType entryType)
        {
            m_consoleView.ConsoleEntryAdded(logEntry, entryType);

            m_consoleLogEntries.Enqueue(logEntry);

            if (m_consoleLogEntries.Count > m_debugSettings.LogBufferSize)
            {
                m_consoleLogEntries.Dequeue();
                m_consoleView.ConsoleQueueExceeded();
            }
        }