public void ReportError(string TaskItemString, string Filename, int nLineNum, int nCharNum, MSHelpCompiler.HxCompErrorSeverity Severity, string DescriptionString) { //Console.ForegroundColor = ConsoleColor.Red; //Console.WriteLine(DescriptionString); //Console.ResetColor(); ReportMessage(Severity, DescriptionString); }
public void ReportMessage(MSHelpCompiler.HxCompErrorSeverity Severity, string DescriptionString) { progressReporter.ProgressMessage(DescriptionString); string status = ""; if (Severity == HxCompErrorSeverity.HxCompErrorSeverity_Error) { status = "Error: "; cError++; } else if (Severity == HxCompErrorSeverity.HxCompErrorSeverity_Fatal) { status = "Fatal: "; cFatal++; } else if (Severity == HxCompErrorSeverity.HxCompErrorSeverity_Warning) { status = "Warning: "; cWarn++; } else //if (Severity == HxCompErrorSeverity.HxCompErrorSeverity_Information) { status = "Info: "; cInfo++; } Log(status + DescriptionString); }