[#BloombergLP-ball-LoggerManager-initSingleton-0bd] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::initSingleton :relfileprefix: ../../../ :mrdocs: Initialize the logger manager singleton having the specified `observer` that receives published log records. Optionally specify a `configuration` describing how the singleton should be configured. If `configuration` is not specified, a default constructed `LoggerManagerConfiguration` object is used. Optionally specify a `globalAllocator` used to supply memory. If `globalAllocator` is 0, the currently installed global allocator is used. Return a non‐`const` reference to the logger manager singleton. This method has no effect (aside from logging a warning) if the logger manager singleton already exists. The behavior is undefined if `observer` is 0, goes out of scope, or is otherwise destroyed. == Synopsis Declared in `<ball_loggermanager.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]& initSingleton( xref:BloombergLP/ball/Observer.adoc[Observer]* observer, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* globalAllocator = 0); ---- == Description DEPRECATED: Use the `initSingleton` method that does not take a _raw_ pointer to an `observer`, together with the `registerObserver` method (which takes a _shared_ pointer to an `observer`), instead. [.small]#Created with https://www.mrdocs.com[MrDocs]#