You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Niels Ull Harremoës (Jira)" <ji...@apache.org> on 2021/12/30 10:54:00 UTC

[jira] [Updated] (LOG4J2-3302) Xml configuration of ClassArbiter does not work

     [ https://issues.apache.org/jira/browse/LOG4J2-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niels Ull Harremoës updated LOG4J2-3302:
----------------------------------------
    Summary: Xml configuration of ClassArbiter does not work  (was: Cannot get ClassArbiter to work)

> Xml configuration of ClassArbiter does not 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
>            Priority: Major
>         Attachments: Fix_ClassArbiter_factory.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> 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)