상속: IDisposable
예제 #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(),
     });
 }
예제 #2
0
        public static void Log(LogLevel level, string message, string phase = null, string file = null, string line = null)
        {
            Log(new LogItem
            {
#if NetCore
                File = file,
#else
                File = file ?? LoggerFileScope.GetFileName(),
#endif
                Line     = line,
                LogLevel = level,
                Message  = message,
#if NetCore
                Phase = phase,
#else
                Phase = phase ?? LoggerPhaseScope.GetPhaseName(),
#endif
            });
        }