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

`logMessage` overloads

== Synopses

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

Log the specified record under the given category and severity&period;


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

[.small]#xref:BloombergLP/ball/Log/logMessage-0b.adoc[_» more&period;&period;&period;_]#

Log a message with the specified category, severity, and location&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/ball/Log/logMessage-00.adoc[logMessage](
    xref:BloombergLP/ball/Category.adoc[Category] const* category,
    int severity,
    std::string&lowbar;view const& fileName,
    int lineNumber,
    std::string&lowbar;view const& message);
----

[.small]#xref:BloombergLP/ball/Log/logMessage-00.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *category*
| category under which the record is logged
| *severity*
| severity level of the log record
| *record*
| record to log and then dispose of
| *fileName*
| source file name attribute for the record
| *lineNumber*
| source line number attribute for the record
| *message*
| text of the log message
|===


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