Re: log4j

"Guillaume Sauthier (OW2)" <[email protected]> Thu, 19 Jan 2012 12:03:13 +0100
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <CAG1yf3PVV_AJUDv1NxSBk5_uSqvyScS82NAFYgVmz6H3pJNQOA@mail.gmail.com>
--f46d043bdedead042a04b6df8258
Content-Type: text/plain; charset=ISO-8859-1

What is your version of JOnAS ?
--G

2012/1/17 <[email protected]>

> Hi,
>
> i want to use log4j with JOnAS. I follow the configuration guide and putt
> the
> log4j.properties in $JONAS_BASE/conf and log4j jar file in
> $JONAS_BASE/lib/commons.
> If I now uncomment in trace.properties the wrapper:
> "log.config.classname
> org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory"
> and comment the wrapper:
> "log.config.classname
> org.objectweb.util.monolog.wrapper.javaLog.LoggerFactory"
> I get the following execption:
> "Cannot get LoggerFactory:java.lang.ClassNotFoundException:
> org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory"
>
> What am I doing wrong?
>
> Thanks
> Mathias
>

--f46d043bdedead042a04b6df8258
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

What is your version of JOnAS ?<div>--G<br><br><div class=3D"gmail_quote">2=
012/1/17  <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">mschuc=
[email protected]</a>&gt;</span><br><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
i want to use log4j with JOnAS. I follow the configuration guide and putt t=
he<br>
log4j.properties in $JONAS_BASE/conf and log4j jar file in<br>
$JONAS_BASE/lib/commons.<br>
If I now uncomment in trace.properties the wrapper:<br>
&quot;log.config.classname<br>
org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory&quot;<br>
and comment the wrapper:<br>
&quot;log.config.classname org.objectweb.util.monolog.wrapper.javaLog.Logge=
rFactory&quot;<br>
I get the following execption:<br>
&quot;Cannot get LoggerFactory:java.lang.ClassNotFoundException:<br>
org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory&quot;<br>
<br>
What am I doing wrong?<br>
<br>
Thanks<br>
Mathias<br>
</blockquote></div><br></div>

--f46d043bdedead042a04b6df8258--