Revision history [back]

click to hide/show revision 1
initial version

LoggerSetting is a singleton because it provides state information to the debug print system used throughout the AllJoyn code base. That state information must persist over the lifetime of the program. If you were to destroy LoggerSetting too soon, you'd crash AllJoyn code.

For the upcoming 14.12 release there is a new static member function in LoggerSetting called Cleanup() which may be called just prior to your program exiting that will destroy the LoggerSetting singleton. Do be careful in calling that as it should only be called once and only after all AllJoyn code has stopped and your application is about to exit.