Skip to content

Commit

Permalink
Clarify that SIOF arises when using the recommended runtime configura…
Browse files Browse the repository at this point in the history
…tion technique
  • Loading branch information
stephen-webb committed Jul 23, 2024
1 parent 3afb432 commit 5fdf45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/site/markdown/extending.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ by calling, for example, `NullWriterAppender::registerClass()`.

To avoid [Static Initialization Order Fiasco](https://en.cppreference.com/w/cpp/language/siof)
when configuring Log4cxx during static initialization
(as in [Runtime Configuration])
(as in [the recommended runtime configuration technique])
you should place the `IMPLEMENT_LOG4CXX_OBJECT` macro
in the file that loads the configuration.
Alternatively, you could call `NullWriterAppender::registerClass()`
Expand Down Expand Up @@ -166,4 +166,4 @@ This example shows how to extend Log4cxx with a new appender.
\example custom-appender.xml
This example shows how to use a new appender in a configuration file.

[Runtime Configuration]:quick-start.html#configuration
[the recommended runtime configuration technique]:quick-start.html#configuration

0 comments on commit 5fdf45d

Please sign in to comment.