Ejemplo n.º 1
0
 /// <summary>
 /// Logs a given item to the debugger.
 /// </summary>
 /// <param name="item">The item to be logged.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="item"/>
 /// is a null reference.</exception>
 public override void Log(LogItem item)
 {
     Ensure.ArgumentNotNull(item, "item");
     System.Diagnostics.Debug.WriteLine(FormatItem(item));
 }
 /// <summary>
 /// Logs a given item to the console.
 /// </summary>
 /// <param name="item">The item to be logged.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="item"/>
 /// is a null reference.</exception>
 public override void Log(LogItem item)
 {
     Ensure.ArgumentNotNull(item, "item");
     Console.Out.WriteLine(FormatItem(item));
 }
 /// <summary>
 /// Invokes the <see cref="LogAction"/> for a given
 /// <see cref="LogItem"/>.
 /// </summary>
 /// <param name="item">Encaspulates logging information.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="item"/>
 /// is a null reference.</exception>
 public override void Log(LogItem item)
 {
     Ensure.ArgumentNotNull(item, "item");
     LogAction(item);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a new log entry based on a given log item.
 /// </summary>
 /// <param name="item">Encaspulates logging information.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="item"/>
 /// is a null reference.</exception>
 public void Log(LogItem item)
 {
     Ensure.ArgumentNotNull(item, "item");
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Records the given log item.
 /// </summary>
 /// <param name="item">The item being logged.</param>
 public override void Log(LogItem item)
 {
     logItems.Add(item);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Creates a new log entry based on a given log item.
 /// </summary>
 /// <param name="item">Encapsulates logging information.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="item"/>
 /// is a null reference.</exception>
 public abstract void Log(LogItem item);