public bool KeepEntry(LogEntry entry) { return entry.IsDebug; }
public virtual void WriteEntry(LogEntry entry) { if (Filter == null || Filter.KeepEntry(entry)) { Writer.WriteLine(entry.ToString()); } }
public bool KeepEntry(LogEntry entry) { return (Channels == null || Channels.Count == 0 || Channels.Contains(entry.Channel)); }
/// <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); } } }