[#BloombergLP-ball-LoggerManager-logMessage]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::logMessage
:relfileprefix: ../../../
:mrdocs:

Publish and dispose of a record via the platform default handler&period;

== Synopsis

Declared in `&lt;ball&lowbar;loggermanager&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
logMessage(
    int severity,
    xref:BloombergLP/ball/Record.adoc[Record]* record);
----

== Description

Publish the specified `record` using `bsls&colon;&colon;Log&colon;&colon;platformDefaultMessageHandler` after setting its severity attribute to the specified `severity`, and dispose of `record`&period; The behavior is undefined unless `record` was obtained by a call to the `LoggerManager&colon;&colon;getRecord` method&period; Note that `record` will be invalid after this method returns&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *severity*
| severity level assigned to the record
| *record*
| record to publish and then dispose of
|===


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