private int GetParentCode(bool isTraceEnabled) { StorageGlobals.TraceContextStack.Pop(); int traceContextCode = StorageGlobals.GetTraceContextCode(isTraceEnabled); StorageGlobals.TraceContextStack.Push(this); return(traceContextCode); }
public static void ContextTraceError <T0, T1, T2>(Trace tracer, string formatString, T0 arg0, T1 arg1, T2 arg2) { bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.ErrorTrace); tracer.TraceError <T0, T1, T2>((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), formatString, arg0, arg1, arg2); }
public static void ContextTraceError(Trace tracer, string formatString, params object[] args) { bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.ErrorTrace); tracer.TraceError((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), formatString, args); }
public static void ContextTraceError(Trace tracer, string message) { bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.ErrorTrace); tracer.TraceError((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), message); }
public static void ContextTraceDebug <T0, T1>(Trace tracer, string formatString, T0 arg0, T1 arg1) { bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.DebugTrace); tracer.TraceDebug <T0, T1>((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), formatString, arg0, arg1); }
public static void ContextTraceInformation <T>(Trace tracer, string formatString, T arg0) { bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.InfoTrace); tracer.Information <T>((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), formatString, arg0); }
public static void ContextTraceInformation(Trace tracer, string message) { bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.InfoTrace); tracer.Information((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), message); }