log4cplus
2.0.0
|
This class helps with initialization and shutdown of log4cplus. More...
#include <initializer.h>
Public Member Functions | |
Initializer () | |
~Initializer () | |
Initializer (Initializer const &) | |
Initializer (Initializer &&) | |
Initializer & | operator= (Initializer const &) |
Initializer & | operator= (Initializer &&) |
This class helps with initialization and shutdown of log4cplus.
Its constructor calls `log4cplus::initialize()` and its destructor calls `log4cplus::Logger::shutdown()`. Use this class as the first thing in your `main()`. It will ensure shutdown of log4cplus at the end of `main()`. This is particularly important on Windows, where shutdown of standard threads outside `main()` is impossible.
Definition at line 47 of file initializer.h.
log4cplus::Initializer::Initializer | ( | Initializer const & | ) |
Initializer& log4cplus::Initializer::operator= | ( | Initializer const & | ) |
Initializer& log4cplus::Initializer::operator= | ( | Initializer && | ) |