[#BloombergLP-ball-LoggerManager-setLogger] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::setLogger :relfileprefix: ../../../ :mrdocs: Set the default logger used by this thread of execution to the specified `logger`, or to the global default logger if `logger` is 0. 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. == Synopsis Declared in `<ball_loggermanager.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setLogger(xref:BloombergLP/ball/Logger.adoc[Logger]* logger); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#