It seems to me that JCS should not attempt to log anything unless
requested to do so, rather than having to be told not to log.
Logging should be totally optional.

On Thu, 6 Feb 2025 at 17:06, John Jeong <john.y.je...@gmail.com> wrote:
>
> Thanks Thomas,
> After applying the non-fatal messages are gone.
> But there are ERROR messages in the console.
>
> [jjeong@john-oel8 test3]$ ./runTest.sh
> ERROR StatusLogger Log4j2 could not find a logging implementation. Please
> add log4j-core to the classpath. Using SimpleLogger to log to the console...
> ERROR LateralTCPService Could not create sender to [localhost:1119] --
> Cannot connect to localhost:1119
> ERROR LateralTCPCacheFactory Failure, lateral instance will use zombie
> service
>  java.io.IOException: Cannot connect to localhost:1119
> at
> org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPSender.init(LateralTCPSender.java:141)
> at
> org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPSender.<init>(LateralTCPSender.java:116)
> at
> org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPService.<init>(LateralTCPService.java:96)
> at
> org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory.lambda$getCSNLInstance$0(LateralTCPCacheFactory.java:271)
> at
> java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1916)
>
> @members of this community.
> Is there anyways to disable ALL log messages of JCS completely ?
> It seems like the following configuration doesn't work.
>
>
> Thanks,
> John
>
>
> On Thu, Feb 6, 2025 at 12:06 AM Thomas Vandahl <t...@apache.org> wrote:
>
> > Hi John,
> >
> > > Am 05.02.2025 um 23:30 schrieb John Jeong <john.y.je...@gmail.com>:
> > >
> > > 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
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> > For additional commands, e-mail: user-h...@commons.apache.org
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to