예제 #1
0
파일: MemoryLog.cs 프로젝트: yuanfei05/vita
        public void AddEntry(OperationLogEntry entry)
        {
            var str = entry.ToString();
              if (str.StartsWith("-- BEGIN BATCH")) {

              }
              OperationLogEntry dummy;
              while(_entries.Count > MaxEntries)
            _entries.TryDequeue(out dummy);
              _entries.Enqueue(entry);
        }
예제 #2
0
        public void Log(OperationLogEntry entry)
        {
            OperationLogEntry dummy;
              while(_entries.Count > 100)
            _entries.TryDequeue(out dummy);

              switch(entry.EntryType) {
            case LogEntryType.Information:
            case LogEntryType.Command:
              if(this.LogLevel == Services.LogLevel.Details)
            _entries.Enqueue(entry);
              break;
            case LogEntryType.Error:
              _entries.Enqueue(entry);
              break;
              }
        }
예제 #3
0
 public void Log(OperationLogEntry entry)
 {
     _saveService.AddObject(entry);
 }