Skip to content

Commit

Permalink
Infinite lifetime option for the runtime logger state: improving the …
Browse files Browse the repository at this point in the history
…FAQ by Swebb's suggestion
  • Loading branch information
vopl committed Oct 17, 2023
1 parent 419e4db commit 0cee78c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/site/markdown/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,11 @@ loggername - ?????????? ???? ??????????????

The important thing to understand is that this is some always applied, backwards compatible default
behaviour and even the case when the current environment sets a locale like `en_US.UTF-8`.

##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 destructors
is not performed. Do not set the "BufferedIO" option of any log4cxx::FileAppender to true when using
this option.

0 comments on commit 0cee78c

Please sign in to comment.