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

GetCurrentStackTraceInfo() public static method

이 함수 호출전까지의 StackTrace 정보를 제공한다.
public static GetCurrentStackTraceInfo ( ) : string
return string
        public static string GetCurrentStackTraceInfo() {
            lock(_syncLock)
                return GetStackTraceInfo(Environment.StackTrace);
        }

Usage Example

示例#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);
            }
        }