예제 #1
0
 internal static bool UnhandledExceptionIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Critical))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 4));
     }
 }
예제 #2
0
 internal static bool TraceCodeEventLogVerboseIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Verbose))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 8));
     }
 }
예제 #3
0
 internal static bool TraceCodeEventLogWarningIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Warning))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 9));
     }
 }
예제 #4
0
 internal static bool TraceCodeEventLogErrorIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Error))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 6));
     }
 }
예제 #5
0
 internal static bool TraceCodeEventLogInfoIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Informational))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 7));
     }
 }
예제 #6
0
 internal static bool TraceCodeEventLogCriticalIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Critical))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 5));
     }
 }
예제 #7
0
 internal static bool ThrowingExceptionVerboseIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Verbose))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 20));
     }
 }
예제 #8
0
 internal static bool ShipAssertExceptionMessageIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Error))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 2));
     }
 }
예제 #9
0
 internal static bool HandledExceptionWarningIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Warning))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 10));
     }
 }
예제 #10
0
 internal static bool AppDomainUnloadIsEnabled(EtwDiagnosticTrace trace)
 {
     if (trace.ShouldTrace(TraceEventLevel.Informational))
     {
         return(true);
     }
     else
     {
         return(TraceCore.IsEtwEventEnabled(trace, 0));
     }
 }
예제 #11
0
 /// <summary>
 /// Check if trace definition is enabled
 /// Event description ID=57394, Level=informational, Channel=Analytic
 /// </summary>
 /// <param name="trace">The trace provider</param>
 internal static bool HandledExceptionIsEnabled(EtwDiagnosticTrace trace)
 {
     return(trace.ShouldTrace(TraceEventLevel.Informational) || TraceCore.IsEtwEventEnabled(trace, 1));
 }
예제 #12
0
 /// <summary>
 /// Check if trace definition is enabled
 /// Event description ID=57406, Level=verbose, Channel=Analytic
 /// </summary>
 /// <param name="trace">The trace provider</param>
 internal static bool HandledExceptionVerboseIsEnabled(EtwDiagnosticTrace trace)
 {
     return(trace.ShouldTrace(TraceEventLevel.Verbose) || TraceCore.IsEtwEventEnabled(trace, 16));
 }
예제 #13
0
 /// <summary>
 /// Check if trace definition is enabled
 /// Event description ID=57405, Level=error, Channel=Operational
 /// </summary>
 /// <param name="trace">The trace provider</param>
 internal static bool HandledExceptionErrorIsEnabled(EtwDiagnosticTrace trace)
 {
     return(trace.ShouldTrace(TraceEventLevel.Error) || TraceCore.IsEtwEventEnabled(trace, 15));
 }
예제 #14
0
 /// <summary>
 /// Check if trace definition is enabled
 /// Event description ID=57396, Level=warning, Channel=Analytic
 /// </summary>
 /// <param name="trace">The trace provider</param>
 internal static bool ThrowingExceptionIsEnabled(EtwDiagnosticTrace trace)
 {
     return(trace.ShouldTrace(TraceEventLevel.Warning) || TraceCore.IsEtwEventEnabled(trace, 3));
 }