This class is usually a singleton factory for Logger objects.
Synopsis
Declared in <ball_loggermanager.h>
class LoggerManager;
Description
This class is usually a singleton. It provides a factory for Logger objects and is also a wrapper for category administration services. Note that some services provided by this class are available only after the singleton has been initialized.
Type Aliases
Name |
Description |
|
|
|
|
|
|
Functor that determines default threshold levels for new categories. |
|
This |
|
Functor invoked to publish all active loggers' record buffers. |
|
|
Member Functions
Name |
Description |
|
Create a logger manager with the specified configuration. |
|
Destroy this logger manager. |
Add a category with the specified name and threshold levels. |
|
Add a new category, inheriting thresholds hierarchically. |
|
Add a rule having the specified |
|
Add each rule in the specified |
|
|
|
Return the address of the modifiable allocator held by this logger manager. |
|
Deallocate the specified logger and release it from management. |
|
|
|
Return the default pass threshold level of this logger manager. |
|
Return the default record threshold level of this logger manager. |
|
Return the default threshold levels associated with this logger manager object. |
|
Return the default trigger‐all threshold level of this logger manager. |
|
Return the default trigger threshold level of this logger manager. |
|
Remove all observers from the registry of observers maintained by this logger manager. |
|
Remove the named attribute collector from the registry. |
|
Remove the named observer from the registry. |
|
|
|
Return a non‐`const` reference to a logger managed by this logger manager suitable for performing logging operations for this thread of execution. |
|
Return whether logging at the specified severity is enabled. |
|
|
|
Return the current capacity of the category registry. |
|
Return the number of categories in the category registry of this logger manager. |
|
|
|
Publish all buffered records from all managed loggers. |
|
Register the specified |
|
Register the specified |
|
Remove every rule from the set of rules maintained by this object. |
|
Remove the rule having the specified |
|
Remove each rule in the specified |
|
Reset the default threshold levels of this logger manager to the original "factory‐supplied" default values or the factory overrides supplied at construction. |
|
Return a |
|
|
|
Set |
|
Set |
|
Set the default threshold levels. |
|
Set the default‐thresholds callback. |
|
Set this thread's default logger to the specified logger. |
|
Set the category registry capacity. |
|
Set thresholds for categories matching |
|
Load the threshold levels that would apply to a new category. |
|
Return the address of the non‐modifiable user populator functor registered with this logger manager, or 0 if there is no registered user populator functor. |
|
|
|
Visit each registered observer with the specified |
Static Member Functions
Name |
Description |
|
|
Return a modifiable record allocated from the default allocator. |
|
|
|
Return |
|
Publish and dispose of a record via the platform default handler. |
|
|
|
Destroy the logger manager singleton and release its resources. |
|
Return a non‐`const` reference to the logger manager singleton. The behavior is undefined unless the logger manager singleton exists. |
Friends
Name |
Description |
Iterator providing modifiable access to logger manager categories. |
|
Iterator providing read‐only access to logger manager categories. |
Created with MrDocs