Stack Trace 정보를 가져오는 Helper Class
示例#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);
            }
        }
示例#2
0
        public void TestOfCurrentStacks()
        {
            log.Debug("Current StackTrace Inforation");
            log.Debug(LINE);

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