Hello Guy,

What version of Geode are you using? This problem should be fixed in 1.11
as logging has been split out into separate modules. geode-logging is a new
module which provides logging abstractions for Geode and uses only the
log4j-api. You can then add your own log4j provider such as the bridge you
mention or simply use geode-log4j if you want vanilla log4j logging.

--Jens

On Tue, Jan 28, 2020 at 1:17 AM Guy Turkenits <guy.turken...@amdocs.com>
wrote:

> Hi,
>
>
>
> Please note that I found a solution to it by adding this system variable :
>
>
>
> -
> Dlog4j2.loggerContextFactory="org.apache.logging.log4j.core.impl.Log4jContextFactory"
>
>
>
> Using this property overrides the loading of the jar I mentioned.
>
>
>
> Thanks,
>
> Guy
>
>
>
>
>
> *From:* Guy Turkenits
> *Sent:* Tuesday, January 28, 2020 9:23 AM
> *To:* user@geode.apache.org
> *Subject:* RE: geode 1.4 problem when log4j-to-slf4j-2.10.0.jar is in the
> classpath
>
>
>
> The error occurred in the client side, when trying to call to geode server
>
>
>
> *From:* Guy Turkenits
> *Sent:* Tuesday, January 28, 2020 9:16 AM
> *To:* user@geode.apache.org
> *Subject:* geode 1.4 problem when log4j-to-slf4j-2.10.0.jar is in the
> classpath
>
>
>
> Hi team,
>
>
>
> When adding the log4j-to-slf4j-2.10.0.jar to the classpath, I am getting
> the following error in geode, when removing it all work fine.
>
>
>
> Caused by: java.lang.ClassCastException:
> org.apache.logging.slf4j.SLF4JLogger cannot be cast to
> org.apache.logging.log4j.core.Logger
>
>                 at
> org.apache.geode.internal.logging.LogService.init(LogService.java:82)
>
>                 at
> org.apache.geode.internal.logging.LogService.<clinit>(LogService.java:73)
>
>
>
> The problem that I cant control the classpath and I am getting this jar
> inside it, do you know how can I overcome this issue when this jar is in
> the classpath?
>
>
>
> Thanks,
>
> Guy
>
>
>
>
>
> *This email and the information contained herein is proprietary and
> confidential and subject to the Amdocs Email Terms of Service, which you
> may review at* *https://www.amdocs.com/about/email-terms-of-service*
> <https://www.amdocs.com/about/email-terms-of-service>
>

Reply via email to