Ejemplo n.º 1
0
            private int GetParentCode(bool isTraceEnabled)
            {
                StorageGlobals.TraceContextStack.Pop();
                int traceContextCode = StorageGlobals.GetTraceContextCode(isTraceEnabled);

                StorageGlobals.TraceContextStack.Push(this);
                return(traceContextCode);
            }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        public static void ContextTraceError(Trace tracer, string message)
        {
            bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.ErrorTrace);

            tracer.TraceError((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), message);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        public static void ContextTraceInformation(Trace tracer, string message)
        {
            bool isTraceEnabled = tracer.IsTraceEnabled(TraceType.InfoTrace);

            tracer.Information((long)StorageGlobals.GetTraceContextCode(isTraceEnabled), message);
        }