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 "Dmitriy Neretin (JIRA)" <ji...@apache.org> on 2016/09/16 13:59:20 UTC

[jira] [Updated] (LOG4J2-1589) Value nesting during property substitution

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

Dmitriy Neretin updated LOG4J2-1589:
------------------------------------
    Description: 
There is already a good description what "default value nesting" is: http://logback.qos.ch/manual/configuration.html#nestedSubst (use your browser search function)

It is partially implemented in the log4j but it can still be improved.

Example from that page above: "${id:-${userid}}" If the ${id} variable is not set, ${userid} will be used.

At the moment it works only if the default value is a concrete value:
- ${path:-/only/concrete/path/can/be/used/here}

  was:
There is already a good description what "default value nesting" is: http://logback.qos.ch/manual/configuration.html#nestedSubst (use your browser search function)

It is partially implemented in the log4j but it can still be improved.

Example from that page above: "${id:-${userid}}" If the ${id} variable is not set, ${userid} will be used.

At the moment it works only if the default value is a concrete value:
${path:-/only/concrete/path/can/be/used/here}


> Value nesting during property substitution
> ------------------------------------------
>
>                 Key: LOG4J2-1589
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1589
>             Project: Log4j 2
>          Issue Type: Wish
>          Components: Configurators
>    Affects Versions: 2.5
>            Reporter: Dmitriy Neretin
>            Priority: Minor
>              Labels: features
>
> There is already a good description what "default value nesting" is: http://logback.qos.ch/manual/configuration.html#nestedSubst (use your browser search function)
> It is partially implemented in the log4j but it can still be improved.
> Example from that page above: "${id:-${userid}}" If the ${id} variable is not set, ${userid} will be used.
> At the moment it works only if the default value is a concrete value:
> - ${path:-/only/concrete/path/can/be/used/here}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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