[#BloombergLP-ball-LoggerManagerScopedGuard-2constructor-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManagerScopedGuard.adoc[LoggerManagerScopedGuard]::LoggerManagerScopedGuard
:relfileprefix: ../../../
:mrdocs:

Create a guard that initializes the logger manager singleton&period;

== Synopses

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

Create a guard that initializes the logger manager singleton&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/LoggerManagerScopedGuard/2constructor-0e.adoc[LoggerManagerScopedGuard](
    xref:BloombergLP/ball/LoggerManagerConfiguration.adoc[LoggerManagerConfiguration] const& configuration,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* globalAllocator = 0);
----

[.small]#xref:BloombergLP/ball/LoggerManagerScopedGuard/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Create a guard that initializes the logger manager singleton&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/LoggerManagerScopedGuard/2constructor-0f.adoc[LoggerManagerScopedGuard](
    xref:BloombergLP/ball/Observer.adoc[Observer]* observer,
    xref:BloombergLP/ball/LoggerManagerConfiguration.adoc[LoggerManagerConfiguration] const& configuration,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* globalAllocator = 0);
----

[.small]#xref:BloombergLP/ball/LoggerManagerScopedGuard/2constructor-0f.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *configuration*
| defaults and attributes for the singleton
| *globalAllocator*
| memory allocator&semi; null uses the global
| *observer*
| observer that receives published log records
|===


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