log4cplus
2.1.0
|
This class helps with initialization and shutdown of log4cplus. More...
#include <initializer.h>
Public Member Functions | |
Initializer () | |
~Initializer () | |
Initializer (Initializer const &)=delete | |
Initializer (Initializer &&)=delete | |
Initializer & | operator= (Initializer const &)=delete |
Initializer & | operator= (Initializer &&)=delete |
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 | ( | ) |
log4cplus::Initializer::~Initializer | ( | ) |
|
delete |
|
delete |
|
delete |
|
delete |