You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Ted <r6...@gmail.com> on 2012/09/13 02:09:36 UTC
cxf and log4j logging
Hi I'm trying to make cxf use log4j instead of the java.util loggers.
I'm following the directions at
http://cxf.apache.org/docs/debugging-and-logging.html where I'm
passing -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
into JAVA_OPTS for tomcat.
It's not working, at least for messages from
ReflectionServiceFactoryBean.java. A quick look at the source shows
private static final Logger LOG =
LogUtils.getL7dLogger(ReflectionServiceFactoryBean.class);
and a quick look at getL7dLogger() appears to be hard coded to return
a java.util.Logger, not a commons logging or anything that would allow
it to switch between different loggers.
Anyone know anything about this? am I switching it wrong or is the
documentation wrong or is the code wrong?
thanks.
--
Ted.
Re: cxf and log4j logging
Posted by Ted <r6...@gmail.com>.
gah, sorry, never mind, it works. Every time I have a problems I
always find it just after sending out an email about it. I had a typo
in my log4j config which mean I was changing the wrong thing.
On 9/13/12, Ted <r6...@gmail.com> wrote:
> Hi I'm trying to make cxf use log4j instead of the java.util loggers.
>
> I'm following the directions at
> http://cxf.apache.org/docs/debugging-and-logging.html where I'm
> passing -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
> into JAVA_OPTS for tomcat.
>
> It's not working, at least for messages from
> ReflectionServiceFactoryBean.java. A quick look at the source shows
>
> private static final Logger LOG =
> LogUtils.getL7dLogger(ReflectionServiceFactoryBean.class);
>
> and a quick look at getL7dLogger() appears to be hard coded to return
> a java.util.Logger, not a commons logging or anything that would allow
> it to switch between different loggers.
>
> Anyone know anything about this? am I switching it wrong or is the
> documentation wrong or is the code wrong?
>
> thanks.
> --
> Ted.
>
--
Ted.