Exemplo n.º 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();
                }
            }
        }
Exemplo n.º 2
0
 public void AddCategory(Tracing.Category category)
 {
     categories.Add(category);
 }