[#BloombergLP-ball-AttributeContext-initialize] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AttributeContext.adoc[AttributeContext]::initialize :relfileprefix: ../../../ :mrdocs: Initialize the static data members of `AttributeContext` using the specified `categoryManager`. Optionally specify a `globalAllocator` used to supply memory. If `globalAllocator` is 0, the currently installed global allocator is used. Unless `reset` is subsequently called, invoking this method more than once will log an error message using `bsls::Log::platformDefaultMessageHandler`, but will have no other effect. Note that in practice this method will be called _automatically_ when the `LoggerManager` singleton is initialized ‐‐ i.e., it is not intended to be called directly by clients of the `ball` package. == Synopsis Declared in `<ball_attributecontext.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void initialize( xref:BloombergLP/ball/CategoryManager.adoc[CategoryManager]* categoryManager, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* globalAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#