logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Changing %c logger abbrevation - can't figure out how to achieve what I'm after
Date Tue, 07 Aug 2018 15:34:12 GMT
Currently the logging pattern for Solr's log4j config contains "%c{1.}".

When the logger is "org.apache.solr.core.SolrCore.Request" the log 
contains "o.a.s.c.S.Request".  I would like it to contain 
"o.a.s.c.SolrCore.Request" instead.  When I change the precision 
specifier to "2.", "2.1", or "1.2", I get "or.ap.so.co.So.Request".  
That's more information, but isn't what I'm after.

The log4j version is 2.11.0.  Is it possible to achieve what I'm after 
with what exists now?  If not, should I open a new issue?

Thanks,
Shawn


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