vopl commented on PR #271: URL: https://github.com/apache/logging-log4cxx/pull/271#issuecomment-1755578794
> These changes are currently not sufficient to allow logging during program termination phase due to other static data used in Log4cxx. Ou mama.. You are right.. > For each level there is a std::shared_ptr static variable which will be reset during the on-exit chain processing. If the Layout tries to include the level name using the (null) LevelPtr the application will crash. > > Also, any LoggerPtr the application stores in a static will be reset during the on-exit chain processing. This will cause a crash if the (null) LoggerPtr is dereferenced in code to add a logging event. Ive reworked all the static-stored state, please look again. The Idea is the same, keep objects undestructed during static destruction phase. -- 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]
