logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yogi Nerella <ynerella...@gmail.com>
Subject Re: 2.0-Beta4
Date Thu, 07 Feb 2013 23:42:06 GMT
Ralph,

My intention is to use as follows.

Application ==> slf4j_1.7.2  ==> slf4j_log4j12_1.7.2 ==> log4j-1.2-api (2.0
Beta 4) ==> log4j (Beta 4)  ==> FlumeAppender.
How do I turn on log4j tracing?
What is the default configuration, does it look for log4j.xml or log4j2.xml
?

Please see the attached zip file for my project.   ( I am testing
compatibility of log4j2 with my old slf4j and log4j12 ).

Thanks for your help
Yogi




On Thu, Feb 7, 2013 at 2:26 PM, Ralph Goers <ralph.goers@dslextreme.com>wrote:

> I suspect you have a missing dependency such as Avro or Jackson.  However,
> I would have expected a stack trace with a bit more information.
>
> Ralph
>
> On Feb 7, 2013, at 12:17 PM, Yogi Nerella wrote:
>
> > Hi,
> >
> > I am trying to use FlumeNg Appender and running into the following
> > exception.
> >
> > 2013-02-07 12:13:49,335 ERROR Unable to invoke method createAppender in
> > class org.apache.logging.log4j.flume.appender.FlumeAppender for element
> > Flume java.lang.reflect.InvocationTargetException
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:601)
> > at
> >
> org.apache.logging.log4j.core.config.BaseConfiguration.createPluginObject(BaseConfiguration.java:723)
> > at
> >
> org.apache.logging.log4j.core.config.BaseConfiguration.createConfiguration(BaseConfiguration.java:489)
> > at
> >
> org.apache.logging.log4j.core.config.BaseConfiguration.createConfiguration(BaseConfiguration.java:481)
> > at
> >
> org.apache.logging.log4j.core.config.BaseConfiguration.doConfigure(BaseConfiguration.java:162)
> > at
> >
> org.apache.logging.log4j.core.config.BaseConfiguration.start(BaseConfiguration.java:120)
> > at
> >
> org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:271)
> > at
> >
> org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:287)
> > at
> org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:139)
> > at
> >
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:76)
> > at
> >
> org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:31)
> > at org.apache.logging.log4j.LogManager.getContext(LogManager.java:178)
> > at
> >
> org.apache.log4j.LogManager$PrivateManager.getContext(LogManager.java:197)
> > at org.apache.log4j.LogManager.getLogger(LogManager.java:73)
> > at
> org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:64)
> >
> >
> > Regards,
> > Yogi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
View raw message