示例#1
0
 public string FormatEntry(DateTime entryTime, Log.Priority entryPriority, string text)
 {
     return(string.Format("{0} - {1}:\t{2}", entryTime, entryPriority, text));
 }
示例#2
0
 /// <summary>
 /// Write a log entry.
 /// </summary>
 /// <param name="message">The message to write to the log</param>
 /// <param name="priority">Message priority</param>
 public void Write(string message, Log.Priority priority)
 {
     this.Write(message, (int)priority);
 }