Re: How to disable message logging to Console and files from JCS
"Piotr P. Karwasz" <[email protected]> Thu, 6 Feb 2025 10:29:30 +0100
| Newsgroups | gmane.comp.jakarta.commons.user |
|---|---|
| Message-ID | <[email protected]> |
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