예제 #1
0
            private int GetParentCode(bool isTraceEnabled)
            {
                StorageGlobals.TraceContextStack.Pop();
                int traceContextCode = StorageGlobals.GetTraceContextCode(isTraceEnabled);

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

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

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