コード例 #1
0
 private void TraceInternal(TraceEventCache eventCache, string xmlApplicationData, int eventId, TraceEventType type)
 {
     try
     {
         EtwTrace.Trace(xmlApplicationData, TraceTypeOf(type), eventId);
     }
     catch (Win32Exception exception)
     {
         if (DebugTrace.Warning)
         {
             DebugTrace.Trace(TraceLevel.Warning, "Exception thrown from ETW Trace : {0} ", exception.Message);
         }
     }
 }
コード例 #2
0
 public override void WriteLine(string text)
 {
     EtwTrace.Trace(text, TraceType.Trace, 0);
 }