Niels Ull Harremoës created LOG4J2-3302:
-------------------------------------------

             Summary: Cannot get ClassArbiter to work
                 Key: LOG4J2-3302
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3302
             Project: Log4j 2
          Issue Type: Bug
    Affects Versions: 2.17.1
         Environment: Java 11
            Reporter: Niels Ull Harremoës
         Attachments: Fix_ClassArbiter_factory.patch

I am trying to get the ClassArbiter to work. There are no samples, but delving 
into the source, I though this should work:

{{<ClassArbiter className="java.lang.String">}}

 

It doesn't.

I guess this is due to line 43-47 of ClassArbiter.java:

@PluginBuilderFactory
public static SystemPropertyArbiter.Builder newBuilder() {
   return new SystemPropertyArbiter.Builder();
}



This should be 

@PluginBuilderFactory
public static ClassArbiter.Builder newBuilder() {
   return new ClassArbiter.Builder();
}

 

Ideally, the documentation should include a sample of how to use ClassArbiter



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to