apache / logging-log4cxx

Apache Log4cxx is a C++ port of Apache Log4j
http://logging.apache.org/log4cxx
Apache License 2.0
278 stars 123 forks source link

Allow for a FMT layout configuration when log4cxx is statically linked #422

Closed swebb2066 closed 1 month ago

swebb2066 commented 1 month ago

This PR prevents the fault: log4cxx: Could not instantiate class [org.apache.log4j.FMTLayout]. when loading a configuration that uses FMTLayout and the application was linked to a Log4cxx static library.

The code for FMTLayout is not bound into the application when the code does not include a reference to FMTLayout.