Re: [D] Help with migrating from log4j to log4j2 (we also use a slf4j -> log4j) [logging-log4j2]

vy (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.log4j.devel
Message-ID <ghd-D_kwDOAKJSSM4AhuMF-d0ae3ce5-b8bd-4ee5-bb67-5db8f9b59263__32470.4128712014$1758213852$gmane$org@gitbox.apache.org>
GitHub user vy added a comment to the discussion: Help with migrating from log4j to log4j2 (we also use a slf4j -> log4j)

@ppkarwasz is very kind to share an extensive list of all approaches along with their trade-offs. @paladox, as Piotr also pointed out, programmatically creating individual classes and wiring them together is a very slippery slope, and most of the time you end up shooting yourself in the foot – hence, [we explicitly advise against this practice](https://logging.apache.org/log4j/2.x/manual/customconfig.html#Hybrid). I strongly recommend you the _"CompositeConfiguration + ConfigurationBuilder"_ route @ppkarwasz shared above.

GitHub link: https://github.com/apache/logging-log4j2/discussions/3914#discussioncomment-14446254

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