Create a guard that initializes the logger manager singleton.
Synopsis
Declared in <ball_loggermanager.h>
explicit
LoggerManagerScopedGuard(
LoggerManagerConfiguration const& configuration,
bslma::Allocator* globalAllocator = 0);
Description
Create a scoped guard that will create the logger manager singleton having the specified configuration of defaults and attributes. Optionally specify a globalAllocator used to supply memory. If globalAllocator is 0, the currently installed global allocator is used. This method has no effect (aside from logging a warning) if the logger manager singleton already exists. Note that on destruction, this scoped guard will destroy the logger manager singleton, if the singleton exists at that time.
Parameters
Name |
Description |
configuration |
defaults and attributes for the singleton |
globalAllocator |
memory allocator; null uses the global |
Created with MrDocs