[#BloombergLP-balxml-Encoder_Context-logError] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_Context.adoc[Encoder_Context]::logError :relfileprefix: ../../../ :mrdocs: Log an encoding error or warning with the specified `text`, `tag`, `formattingMode`, and optional `index`. Return the severity of the logged message. == Synopsis Declared in `<balxml_encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balxml/ErrorInfo/Severity-0f.adoc[ErrorInfo::Severity] logError( char const* text, std::string_view const& tag, int formattingMode, int index = ‐1); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#