comparison 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
comparison
equal deleted inserted replaced
36:313f708a50e9 37:c2c043520724
18 public void LogEvent(TEvent data) { 18 public void LogEvent(TEvent data) {
19 var t = Events; 19 var t = Events;
20 if (t!= null) 20 if (t!= null)
21 t(TraceContext.Current,new ValueEventArgs<TEvent>(data)); 21 t(TraceContext.Current,new ValueEventArgs<TEvent>(data));
22 } 22 }
23
24 public void LogEvent(TraceContext context,TEvent data) {
25 var t = Events;
26 if (t != null)
27 t(context, new ValueEventArgs<TEvent>(data));
28 }
23 } 29 }
24 } 30 }