Stack Trace 정보를 가져오는 Helper Class
Esempio 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);
            }
        }
Esempio 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);
                }
            }
        }