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 "Mikael Ståldal (JIRA)" <ji...@apache.org> on 2017/04/05 15:14:41 UTC

[jira] [Updated] (LOG4J2-1860) Shortcut to add Property and KeyValuePair component in ConfigurationBuilder

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

Mikael Ståldal updated LOG4J2-1860:
-----------------------------------
    Description: 
It would be nice to have shortcuts for 

{code}
builder.addComponent(builder.newComponent("my-name, "Property", "my-value"));
{code}

and 

{code}
builder.addComponent(builder.newComponent("KeyValuePair").addAttribute("key", "my-key").addAttribute("value", "my-value"));
{code}

since they are used by several appenders and layouts.

  was:
It would be nice to have shortcuts for 

{code}
builder.addComponent(builder.newComponent("key, "Property", "value"));
{code}

and 

{code}
builder.addComponent(builder.newComponent("key, "KeyValuePair", "value"));
{code}

since they are used by several appenders and layouts.


> Shortcut to add Property and KeyValuePair component in ConfigurationBuilder
> ---------------------------------------------------------------------------
>
>                 Key: LOG4J2-1860
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1860
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Configurators
>    Affects Versions: 2.8.1
>            Reporter: Mikael Ståldal
>
> It would be nice to have shortcuts for 
> {code}
> builder.addComponent(builder.newComponent("my-name, "Property", "my-value"));
> {code}
> and 
> {code}
> builder.addComponent(builder.newComponent("KeyValuePair").addAttribute("key", "my-key").addAttribute("value", "my-value"));
> {code}
> since they are used by several appenders and layouts.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org