Log4j-over-slf4j and elasticsearch 0.18.4

Hi.

Im working on a project that uses log4j-over-slf4j v1.6.1, which seems to
provoke a:
NoSuchMethodError[org.apache.log4j.Logger.setLevel(Lorg/apache/log4j/Level;)V];
]]

Does anyone have any compatability information about lo4j-over-slf4j and
newer elasticsearch-versions?

regards

Runar Myklebust

Seems like the log4j slf4j adapter does not implement it..., try and set
ESLoggerFactory#setDefaultFactory(new Slf4jESLoggerFactory()) in your
application startup, see if it helps. (slf4j is the worst thing that
happened to java logging world, and obviously, it becomes successful).

On Mon, Nov 28, 2011 at 1:13 PM, Runar Myklebust runar@myklebust.me wrote:

Hi.

Im working on a project that uses log4j-over-slf4j v1.6.1, which seems to
provoke a:
NoSuchMethodError[org.apache.log4j.Logger.setLevel(Lorg/apache/log4j/Level;)V];
]]

Does anyone have any compatability information about lo4j-over-slf4j and
newer elasticsearch-versions?

regards

Runar Myklebust

Worked! Thanks a lot.

On Mon, Nov 28, 2011 at 12:21 PM, Shay Banon kimchy@gmail.com wrote:

Seems like the log4j slf4j adapter does not implement it..., try and set
ESLoggerFactory#setDefaultFactory(new Slf4jESLoggerFactory()) in your
application startup, see if it helps. (slf4j is the worst thing that
happened to java logging world, and obviously, it becomes successful).

On Mon, Nov 28, 2011 at 1:13 PM, Runar Myklebust runar@myklebust.mewrote:

Hi.

Im working on a project that uses log4j-over-slf4j v1.6.1, which seems to
provoke a:
NoSuchMethodError[org.apache.log4j.Logger.setLevel(Lorg/apache/log4j/Level;)V];
]]

Does anyone have any compatability information about lo4j-over-slf4j and
newer elasticsearch-versions?

regards

Runar Myklebust

mvh

Runar Myklebust