swebb2066 commented on issue #557: URL: https://github.com/apache/logging-log4cxx/issues/557#issuecomment-3464839623
I believe this is most likely an example of [Static Initialization Order Fiasco](https://en.cppreference.com/w/cpp/language/siof). To avoid this, you can put your extension class(es) (and the IMPLEMENT_LOG4CXX_OBJECT macro) in a dynamic library (DSO/DLL) that is loaded before loading the Log4cxx configuration file. Alternatively, you could call ScriptLevel::registerClass() before loading the configuration file. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
