Inheritance: IDisposable
Ejemplo n.º 1
0
 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(),
     });
 }
Ejemplo n.º 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
            });
        }