public static string Report(ContextLoggerEntry entry) { StringBuilder sbofs = new StringBuilder(); for (int cc = 0; cc < entry.Depth; cc++ ) { sbofs.Append('\t'); } return string.Format("{2}{0} === {1}", entry.Source.Name.PadRight(15), entry.Message, sbofs); }
/// <summary> /// Add new context item/entry /// </summary> public void Add(ContextLoggerEntry newItem) { items.Add(newItem); if (items.Count > maxListSize) items.RemoveAt(0); }