Mercurial > pub > ImplabNet
diff Implab/Diagnostics/LogChannel.cs @ 37:c2c043520724 diagnostics
working version of diagnostics logging
author | cin |
---|---|
date | Tue, 15 Apr 2014 02:46:18 +0400 |
parents | 313f708a50e9 |
children | d9d794b61bb9 |
line wrap: on
line diff
--- a/Implab/Diagnostics/LogChannel.cs Tue Apr 15 02:00:09 2014 +0400 +++ b/Implab/Diagnostics/LogChannel.cs Tue Apr 15 02:46:18 2014 +0400 @@ -20,5 +20,11 @@ if (t!= null) t(TraceContext.Current,new ValueEventArgs<TEvent>(data)); } + + public void LogEvent(TraceContext context,TEvent data) { + var t = Events; + if (t != null) + t(context, new ValueEventArgs<TEvent>(data)); + } } }