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]

Reply via email to