public void ConsoleEntryAdded(string logEntry, ConsoleEntryType entryType) { string formattedEntry = FormatInputString(logEntry, entryType) + "\n"; m_formattedMessagesQueue.Enqueue(formattedEntry); m_logTextField.text += formattedEntry; m_debuggerView.ScrollToBottom(); }
private void AddEntryToLogger(string logMessage, LogLevels logLevel) { string formattedMessage = FormatInputString(logLevel, logMessage); m_loggerEntries.Enqueue(formattedMessage); m_loggerTextField.text += formattedMessage; if (m_loggerEntries.Count > m_debugSettings.LogBufferSize) { m_loggerTextField.text = m_loggerTextField.text.Substring(m_loggerEntries.Dequeue().Length); } m_debuggerView.ScrollToBottom(); }