public void Info(object msg) { MemoryLogger.Entry entry = this.Create(); entry.Message = this.GetString(msg); entry.Prefix = "Info"; this.Add(entry); }
public void LogException(Exception e) { MemoryLogger.Entry entry = this.Create(); entry.Message = this.GetString(e); entry.Prefix = "Exception"; this.Add(entry); }
private void Add(MemoryLogger.Entry entry) { this._entries.Enqueue(entry); int num = this._entries.Count - this.MaxLimit; for (int i = 0; i < num; i++) { this._entries.Dequeue(); } }
public void Debug(string tag, object msg) { if (this.EnableFilter) { LogTagMgr.Instance.EnsureTagExists(tag); if (!LogTagMgr.Instance[tag].Enable) { return; } } MemoryLogger.Entry entry = this.Create(); entry.Message = this.GetString(msg); entry.Prefix = "Debug:" + tag; this.Add(entry); }
public void Error(object msg) { MemoryLogger.Entry entry = this.Create(); entry.Message = this.GetString(msg); entry.Prefix = "Error"; }