Stack Trace 정보를 가져오는 Helper Class
Exemplo n.º 1
0
        public void Test()
        {
            var stackTrace = StackTracer.GetCurrentStackTraceInfo();

            if (IsDebugEnabled)
            {
                log.Debug("Current StackTrace Inforation");
                log.Debug(LINE);
                log.Debug(stackTrace);
                log.Debug(LINE);
            }
        }
Exemplo n.º 2
0
        public void TestOfCurrentStacks()
        {
            log.Debug("Current StackTrace Inforation");
            log.Debug(LINE);

            foreach (string methodCall in StackTracer.GetCurrentStackTraces())
            {
                if (IsDebugEnabled)
                {
                    log.Debug(methodCall);
                }
            }
        }