swebb2066 commented on issue #638:
URL: 
https://github.com/apache/logging-log4cxx/issues/638#issuecomment-4323785940

   Yes, it is a mess.
   
   The CMake option `LOG4CXX_FORMAT_NAMESPACE=std` is currently only used when 
building Google Benchmark checks. It allows developers to compare the 
performance of the fmt and standard libraries. Setting this option when 
building Log4cxx does not prevent an application from using the fmt library to 
build a logging request message.
   
   An application developer can use the standard library implementation of 
format (i.e. `std::format`) in an app's logging requests by adding 
`LOG4CXX_FORMAT_NS=std` to the cmake `target_compile_definitions` command. If 
that preprocessor macro is absent, the LOG4CXX_XXXXX_FMT  logging macros will 
expand to use `fmt::format`.
   
   Let me know if that clarifies your understanding (or where it does not) so I 
can improve the website documentation.
   


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