[#BloombergLP-baljsn-Encoder-loggedMessages]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/Encoder.adoc[Encoder]::loggedMessages
:relfileprefix: ../../../
:mrdocs:

Return messages logged during the last call to the `encode` method&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[bsl::string]
loggedMessages() const;
----

== Description

Return a string containing any error, warning, or trace messages that were logged during the last call to the `encode` method&period; The log is reset each time `encode` is called&period;

== Return Value

a string containing any error, warning, or trace messages from the last `encode` call


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