logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remko Popma <remko.po...@gmail.com>
Subject Re: rEx pattern without class packaging information?
Date Wed, 12 Sep 2018 23:54:14 GMT
Just looking at the docs I thought that adding the packaging information was a feature of the
‘xEx’ layout pattern, not ‘rEx’. 

(Shameless plug) Every java main() method deserves http://picocli.info

> On Sep 13, 2018, at 8:16, Kevin Jung <mykevinjung@gmail.com> wrote:
> 
> Hello,
> 
> I wanted to log the root cause first in the exception, so trying to use
> *rEx* in the pattern layout.  However, it seems to log class packaging
> information as well, e.g. [spring-webmvc-4.1.5.RELEASE.jar:4.1.5.RELEASE]
> in the following example:
> 
> at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
> [spring-webmvc-4.1.5.RELEASE.jar:4.1.5.RELEASE]
> at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
> [spring-webmvc-4.1.5.RELEASE.jar:4.1.5.RELEASE]
> 
> Is there anyway to not include the packaging information with rEx option?
> I debugged into RootThrowablePatternConverter, but couldn't find anyway to
> avoid.
> 
> If there is no such option, then I will have to live with it.  But I would
> prefer to not have the packaging information if possible.
> 
> Thanks,
> Kevin

---------------------------------------------------------------------
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