Re: How to disable message logging to Console and files from JCS
Thomas Vandahl <[email protected]> Thu, 6 Feb 2025 09:06:30 +0100
| Newsgroups | gmane.comp.jakarta.commons.user |
|---|---|
| Message-ID | <[email protected]> |
Hi John, > Am 05.02.2025 um 23:30 schrieb John Jeong <[email protected]>: > > 2. Defined the log configuration file in the JVM command like the following > > ${JAVA_HOME}/bin/java -classpath ${CLASSPATH} > -Dlog4j.configurationFile=file:/opt/JCS/test/config/log4j2.xml TestMain 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 Bye, Thomas