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!

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to