This is an automated email from the ASF dual-hosted git repository.

swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/master by this push:
     new 00a5bc33 Clarify the behaviour of the logging during process 
termination option (#537)
00a5bc33 is described below

commit 00a5bc33a7a6bb73076e3da0946121dad647c05d
Author: Stephen Webb <[email protected]>
AuthorDate: Sun Sep 14 10:50:27 2025 +1000

    Clarify the behaviour of the logging during process termination option 
(#537)
---
 src/site/markdown/faq.md | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/site/markdown/faq.md b/src/site/markdown/faq.md
index c4886a83..62082561 100644
--- a/src/site/markdown/faq.md
+++ b/src/site/markdown/faq.md
@@ -93,7 +93,9 @@ behaviour and even the case when the current environment sets 
a locale like `en_
 ## Does Log4cxx support logging at process termination?{#atexit_events}
 
 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 destructors
-is not performed. Setting the "BufferedIO" option of any log4cxx::FileAppender 
to true is possible when using
-this option due to the forced buffers flushing during the static 
deinitialization phase.
+termination (i.e. in static destructors and other atexit() functions).
+When this option is used (and log4cxx::LogManager::shutdown is <b>not</b> 
called),
+loggers and appenders are not destroyed, files are not closed
+and 
[apr_terminate](https://apr.apache.org/docs/apr/1.6/group__apr__library.html) 
is not called in Log4cxx destructors.
+Instead the Log4cxx destructor will simply shutdown any background thread
+and flush any buffered output.

Reply via email to