qq952670771 commented on issue #557:
URL: 
https://github.com/apache/logging-log4cxx/issues/557#issuecomment-3466697841

   > 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.
   
   I understand what you mean. Then how should it be revised? Change each of 
the obtained places into static functions, and then return the result through 
these functions?


-- 
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]

Reply via email to