/// <inheritdoc/> public void LogWarning(string subcategory, string warningCode, string helpKeyword, string file, FilePosition position, string message, params object[] messageArgs) => LogWarning(subcategory, warningCode, helpKeyword, file, position.StartLine, position.StartColumn, position.EndLine, position.EndColumn, message, messageArgs);
/// <inheritdoc/> public void Log(string subcategory, string code, string helpKeyword, string file, FilePosition position, LogMessageLevel level, string message, params object[] messageArgs) => Log(subcategory, code, helpKeyword, file, position.StartLine, position.StartColumn, position.EndLine, position.EndColumn, level, message, messageArgs);
/// <summary> /// Logs an error from the <see cref="ParsingException"/> using the given <see cref="ITaskLogger"/>. /// </summary> /// <param name="ex"></param> /// <param name="file"></param> /// <param name="position"></param> /// <param name="Log"></param> public static void LogErrorFromException(this ParsingException ex, ITaskLogger Log, string file, FilePosition position) { Log.LogError(null, ex.MessageCode, "", file, position, ex.Message, ex.MessageArgs); }