Log an encoding error or warning with the specified text, tag, formattingMode, and optional index. Return the severity of the logged message.
Declared in <balxml_encoder.h>
ErrorInfo::Severity
logError(
char const* text,
std::string_view const& tag,
int formattingMode,
int index = -1);