Microsoft.DocAsCode.Common.LoggerFileScope.GetFileName C# (CSharp) Method

GetFileName() static private method

static private GetFileName ( ) : string
return 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