swebb2066 commented on PR #271:
URL: https://github.com/apache/logging-log4cxx/pull/271#issuecomment-1765540910

   > We should probably add a bit to the [threading 
notes](https://github.com/apache/logging-log4cxx/blob/master/src/site/markdown/threading.md)
 page, indicating that this config option may help in unexpected exit use-cases.
   
   I suggest we add an item to the [FAQ](src/site/markdown/faq.md) rather than 
[threading 
notes](https://github.com/apache/logging-log4cxx/blob/master/src/site/markdown/threading.md)
 page. Perhaps something like:
   
   ##Does Log4cxx support logging at process termination?
   Log4cxx must be built with `-DLOG4CXX_EVENTS_AT_EXIT=ON` to use logging 
during the application termination (i.e. in static destuctors and other 
atexit() functions) . When this option is used, the dynamic memory 
deallocation, buffer flushing and file handle closing normally done in 
destuctors is not performed. Do not set the "BufferedIO" option of any 
log4cxx::FileAppender to true when using this option.
   
   
   


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