public void Write(Item item) { var message = string.Format(CultureInfo.InvariantCulture, item.Format, item.Args); var exceptionAsString = item.Exception == null ? string.Empty : " " + item.Exception; var args = new object[] { item.LoggerName, item.Level, message, exceptionAsString, item.TimeStamp, }; WriteLine(LineFormat, args); }
public void Write(Item item) { items.Add(item); }