Re: How to disable message logging to Console and files from JCS

Thomas Vandahl <[email protected]> Fri, 7 Feb 2025 14:07:35 +0100
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <[email protected]>
Hi John,

> Am 06.02.2025 um 18:03 schrieb John Jeong <[email protected]>:
> 
> 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...

This line basically tells you what is wrong.

> 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 ?

Are you actually sure that you want to silence error messages like these? It tells you that something is wrong with your configuration.

Bye, Thomas