+1 for JCS-241. A wrapper to the worse logging system is not great IMO. Gary
On Thu, Feb 6, 2025, 04:31 Piotr P. Karwasz <pi...@mailing.copernik.eu> wrote: > Hi Thomas, > > On 6.02.2025 09:06, Thomas Vandahl wrote: > > JCS uses java.util.logging by default. To switch to Log4J2, you need the > system property -Djcs.logSystem=log4j2 > > See https://commons.apache.org/proper/commons-jcs/UpgradingFrom2x.html > > Why do we even use a logging wrapper? I have created JCS-241[1] to > rewrite the log calls to use Log4j API directly. It should be fairly > easy to do it using OpenRewrite. > > Of course I am not totally unbiased on the choice of the backend to > keep, but redirecting logs from Log4j API to JUL is trivial, while for > the other direction you need to setup a `java.util.logging.manager` > system property or similar. > > Piotr > > [1] https://issues.apache.org/jira/browse/JCS-241 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > >