Beispiel #1
0
        public List <LogHistoryItem> GetHistoryList(out bool bChanged)
        {
            bChanged = false;

            if (_HeadBar._LogType != LogHistoryLogType.AllLog)
            {
                if (_LogType != _HeadBar._LogType)
                {
                    bChanged = true;
                    _FilterHistoryItems.Clear();
                    for (int i = 0; i < _logHistoryItems.Count; i++)
                    {
                        LogHistoryItem item = _logHistoryItems[i];
                        if (_HeadBar._LogType == item._Type)
                        {
                            _FilterHistoryItems.Add(item);
                        }
                    }

                    _LogType = _HeadBar._LogType;

                    _CurrentHistory = _FilterHistoryItems;
                }
            }
            else
            {
                if (_LogType != _HeadBar._LogType)
                {
                    bChanged = true;
                    _LogType = _HeadBar._LogType;
                }
                _CurrentHistory = _logHistoryItems;
            }

            return(_CurrentHistory);
        }
Beispiel #2
0
 public int GetIndexByItem(LogHistoryItem item)
 {
     return(_CurrentHistory.IndexOf(item));
 }
Beispiel #3
0
 public void AddCommandLine(LogHistoryItem item)
 {
     _logHistoryItems.Add(item);
 }
Beispiel #4
0
        private void InternalHandleLoggingEvent(string logString, string stackTrace, LogHistoryLogType type)
        {
            LogHistoryItem item = new LogHistoryItem(type, logString, Time.time, (stackTrace));

            _logHistoryItems.Add(item);
        }