예제 #1
0
        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();
                }
            }
        }
예제 #2
0
 public void AddCategory(Tracing.Category category)
 {
     categories.Add(category);
 }