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

Set this thread&apos;s default logger to the specified logger&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setLogger(xref:BloombergLP/ball/Logger.adoc[Logger]* logger);
----

== Description

Set the default logger used by this thread of execution to the specified `logger`, or to the global default logger if `logger` is 0&period; The behavior is undefined unless `logger` was obtained from this logger manager, and this thread of execution does not hold exclusive access to the record buffer of its current default logger&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *logger*
| logger to install for this thread&semi; null uses the default
|===


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