using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Implab.Diagnostics { public class LogChannel { static LogChannel _default = new LogChannel(); public static LogChannel Default { get { return _default; } } public event EventHandler> Events; public void LogEvent(TEvent data) { var t = Events; if (t!= null) t(TraceContext.Current,new ValueEventArgs(data)); } public void LogEvent(TraceContext context,TEvent data) { var t = Events; if (t != null) t(context, new ValueEventArgs(data)); } } }