Microsoft.DocAsCode.Common.LoggerFileScope.GetFileName C# (CSharp) 메소드

GetFileName() 정적인 개인적인 메소드

static private GetFileName ( ) : string
리턴 string
        internal static string GetFileName()
        {
            return CallContext.LogicalGetData(nameof(LoggerFileScope)) as string;
        }

Usage Example

예제 #1
0
파일: Logger.cs 프로젝트: yodamaster/docfx
 public static void Log(LogLevel level, string message, string phase = null, string file = null, string line = null)
 {
     Log(new LogItem
     {
         File     = file ?? LoggerFileScope.GetFileName(),
         Line     = line,
         LogLevel = level,
         Message  = message,
         Phase    = phase ?? LoggerPhaseScope.GetPhaseName(),
     });
 }
All Usage Examples Of Microsoft.DocAsCode.Common.LoggerFileScope::GetFileName