[#BloombergLP-balxml-Encoder_Context-logError]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_Context.adoc[Encoder&lowbar;Context]::logError
:relfileprefix: ../../../
:mrdocs:

Log an encoding error or warning with the specified `text`, `tag`, `formattingMode`, and optional `index`&period;

== Synopsis

Declared in `&lt;balxml&lowbar;encoder&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balxml/ErrorInfo/Severity-0f.adoc[ErrorInfo::Severity]
logError(
    char const* text,
    std::string&lowbar;view const& tag,
    int formattingMode,
    int index = &hyphen;1);
----

== Description

Return the severity of the logged message&period;

== Return Value

the severity of the logged message

== Parameters

[cols="1,4"]
|===
| Name| Description
| *text*
| error or warning message text
| *tag*
| XML tag associated with the message
| *formattingMode*
| formatting mode in effect
| *index*
| optional array index&semi; `&hyphen;1` if not applicable
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
