public void Write(string message, Tracing.Category category) { if (writer == null) return; if (categories.Contains(category)) { writer.WriteLine(message); if (category == Tracing.Category.Error) { writer.Flush(); } } }
public void AddCategory(Tracing.Category category) { categories.Add(category); }