cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Woonsan Ko <woon_...@yahoo.com>
Subject Re: LocationAwareness in Slf4jLogger
Date Fri, 22 Jul 2011 20:47:08 GMT




----- Original Message ----
> From: Daniel Kulp <dkulp@apache.org>
> To: dev@cxf.apache.org
> Cc: Woonsan Ko <woon_san@yahoo.com>
> Sent: Fri, July 22, 2011 3:32:14 PM
> Subject: Re: LocationAwareness in Slf4jLogger
> 
> On Friday, July 22, 2011 11:10:50 AM Woonsan Ko wrote:
> > Hi,
> > 
> > The current CXF Slf4jLogger just invokes the internal slf4j logger  object.
> > In this way, it cannot show the original logging  location.
> > For example, when logging configuration contains something  like '%C:%L', it
> > prints the Slf4jLogger class name and its line number  instead of the
> > caller's class name and its line number.
> > In order  to show the original logging locations nicely, we can use
> >  org.slf4j.spi.LocationAwareLogger#log(, fqcn, ...) operation. With  
>provision
> > of the FQCN of the wrapper class (Slf4jLogger, in this case),  the
> > underlying slf4j logger will find the exact logging  location.
> > Shall I create a patch for this with a JIRA  issue?
> 
> Yea!   That would be great.   We had to do a bunch of  things like this for the 
>
> Log4J logger as well to get the correct  location.   A patch would definitely 
> be welcome!

I've created a JIRA issue: https://issues.apache.org/jira/browse/CXF-3680
I'll provide a patch for both Slf4jLogger and Log4jLogger.
Thanks,

Woonsan

> 
> -- 
> Daniel  Kulp
> dkulp@apache.org
> http://dankulp.com/blog
> Talend  - http://www.talend.com
> 

Mime
View raw message