Re: [D] Next Log4cxx Major release thoughts [logging-log4c xx]

rm5248 (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.log4j.devel
Message-ID <ghd-D_kwDOBToI6s4AhRe1-c1b09fee-f484-4b67-bf2d-2e3942191a8c__34418.4460978553$1761791090$gmane$org@gitbox.apache.org>
GitHub user rm5248 added a comment to the discussion: Next Log4cxx Major release thoughts

I messed around a bit with a new possible way to log stuff tonight: https://github.com/rm5248/cxx-logger-testing/tree/main

I have no idea if it is faster or not; a lot of work would have to be done in order to see what performance hit(if any) this would cause.  I expect that there could still be some optimizations to do.

Some parts that I consider important:

- it uses no macros, instead using `std::source_location` for the source file location
- Because of the above, C++20 is required
- you need a modern version of GCC, since it only gained `std::format` support fairly recently
- the way to log is very easy: `l.debug_fmt("hi {}", "todd")();`

Feedback/thoughts would be good.

GitHub link: https://github.com/apache/logging-log4cxx/discussions/519#discussioncomment-14821823

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.