示例#1
0
 public static void LogWarning(LocalizedString localizedString)
 {
     if (ExTraceGlobals.LogTracer.IsTraceEnabled(TraceType.InfoTrace))
     {
         ExTraceGlobals.LogTracer.Information(0L, TaskLogger.FormatLocalizedString(localizedString));
     }
     if (TaskLogger.fileLoggingEnabled)
     {
         TaskLogger.LogWarningString(TaskLogger.FormatLocalizedString(localizedString));
     }
 }
示例#2
0
 private static void LogErrorString(string message)
 {
     if (TaskLogger.IsPrereqLogging)
     {
         TaskLogger.LogMessageString("[REQUIRED] " + message);
         return;
     }
     if (TaskLogger.LogAllAsInfo)
     {
         TaskLogger.LogMessageString(message);
         return;
     }
     if (TaskLogger.LogErrorAsWarning)
     {
         TaskLogger.LogWarningString(message);
         return;
     }
     TaskLogger.LogMessageString("[ERROR] " + message);
 }