Example #1
0
        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);
        }
Example #2
0
 public void Write(Item item)
 {
     items.Add(item);
 }