NSoft.NFramework.StackTracer.GetCurrentStackTraces C# (CSharp) Method

GetCurrentStackTraces() public static method

현재 StackTrace 정보중에 Method 호출한 부분만을 추출하여 문자열 배열로 반환한다.
public static GetCurrentStackTraces ( ) : ICollection
return ICollection
        public static ICollection<string> GetCurrentStackTraces() {
            //lock(_syncLock)
            return GetStackTraces(Environment.StackTrace);
        }

Usage Example

示例#1
0
        public void TestOfCurrentStacks()
        {
            log.Debug("Current StackTrace Inforation");
            log.Debug(LINE);

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