You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Gary Gregory <ga...@gmail.com> on 2016/09/20 23:17:34 UTC

Bug in pattern or usage

We have code like this in a couple of places:

        final String search = String.format(StatusLoggerAdminMBean.PATTERN,
escape(contextName), "*");


Where:

    String PATTERN = Server.DOMAIN + ":type=%s,component=StatusLogger";

And:

    public static final String DOMAIN = "org.apache.logging.log4j2";

So of course the "*" is not used.

Is the bug that we have a missing parameter marker in the pattern or that
we should not pass the extra argument?

Gary

-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory