예제 #1
0
 public static void TraceFail(ISystemProbeTraceable activityIdHolder, string component, string formatString, params object[] args)
 {
     if (!SystemProbe.IsTraceEnabled(activityIdHolder))
     {
         return;
     }
     SystemProbe.AddToLog(activityIdHolder.SystemProbeId, component, SystemProbe.Status.Fail, formatString, args);
 }
예제 #2
0
 public static void TraceFail(ISystemProbeTraceable activityIdHolder, string component, string message)
 {
     if (!SystemProbe.IsTraceEnabled(activityIdHolder))
     {
         return;
     }
     SystemProbe.AddToLog(activityIdHolder.SystemProbeId, component, SystemProbe.Status.Fail, message, new object[0]);
 }
예제 #3
0
 public static void TraceFail <T0>(ISystemProbeTraceable activityIdHolder, string component, string formatString, T0 arg0)
 {
     if (!SystemProbe.IsTraceEnabled(activityIdHolder))
     {
         return;
     }
     SystemProbe.AddToLog(activityIdHolder.SystemProbeId, component, SystemProbe.Status.Fail, formatString, new object[]
     {
         arg0
     });
 }
예제 #4
0
 public static void TracePass <T0, T1>(ISystemProbeTraceable activityIdHolder, string component, string formatString, T0 arg0, T1 arg1)
 {
     if (!SystemProbe.IsTraceEnabled(activityIdHolder))
     {
         return;
     }
     SystemProbe.AddToLog(activityIdHolder.SystemProbeId, component, SystemProbe.Status.Pass, formatString, new object[]
     {
         arg0,
         arg1
     });
 }
예제 #5
0
 internal static bool IsTraceEnabled(ISystemProbeTraceable activityIdHolder)
 {
     return(activityIdHolder != null && SystemProbe.IsTraceEnabled(activityIdHolder.SystemProbeId));
 }
예제 #6
0
 public void TraceFail(ISystemProbeTraceable activityIdHolder, long etlTraceId, string formatString, params object[] args)
 {
     SystemProbe.TraceFail(activityIdHolder, this.componentName, formatString, args);
     this.etlTracer.TraceError(etlTraceId, formatString, args);
 }
예제 #7
0
 public void TraceFail <T0, T1, T2>(ISystemProbeTraceable activityIdHolder, long etlTraceId, string formatString, T0 arg0, T1 arg1, T2 arg2)
 {
     SystemProbe.TraceFail <T0, T1, T2>(activityIdHolder, this.componentName, formatString, arg0, arg1, arg2);
     this.etlTracer.TraceError <T0, T1, T2>(etlTraceId, formatString, arg0, arg1, arg2);
 }
예제 #8
0
 public void TraceFail(ISystemProbeTraceable activityIdHolder, long etlTraceId, string message)
 {
     SystemProbe.TraceFail(activityIdHolder, this.componentName, message);
     this.etlTracer.TraceError(etlTraceId, message);
 }
예제 #9
0
 public void TracePfdPass <T0, T1>(ISystemProbeTraceable activityIdHolder, long etlTraceId, string formatString, T0 arg0, T1 arg1)
 {
     SystemProbe.TracePass <T0, T1>(activityIdHolder, this.componentName, formatString, arg0, arg1);
     this.etlTracer.TracePfd <T0, T1>(etlTraceId, formatString, arg0, arg1);
 }