示例#1
0
 public bool KeepEntry(LogEntry entry)
 {
     return entry.IsDebug;
 }
示例#2
0
 public virtual void WriteEntry(LogEntry entry)
 {
     if (Filter == null || Filter.KeepEntry(entry))
     {
         Writer.WriteLine(entry.ToString());
     }
 }
示例#3
0
 public bool KeepEntry(LogEntry entry)
 {
     return (Channels == null || Channels.Count == 0 || Channels.Contains(entry.Channel));
 }
示例#4
0
 /// <summary>
 /// Writes the given LogEntry to all log streams.
 /// </summary>
 /// <remarks>
 /// Create your own LogEntry or ILogStream classes for custom logging.
 /// </remarks>
 public static void WriteLogEntry(LogEntry entry)
 {
     lock (sSyncLock)
     {
         foreach (var logStream in sLogStreams)
         {
             logStream.WriteEntry(entry);
         }
     }
 }