Helper class to unregister the handler from the logger upon own destruction. More...
#include <cadex/Utilities/Logger.hxx>
Public Member Functions | |
| Sentry (const std::shared_ptr< LoggerHandler > &theHandler) | |
| Constructor. | |
| ~Sentry () | |
| Destructor. | |
Helper class to unregister the handler from the logger upon own destruction.
Sentry implements the RAII pattern (Resource Acquisition Is Initialization) and is convenient when a handler's life span is limited to a scope, for example: