[ 
https://issues.apache.org/jira/browse/LOG4J2-2831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17169458#comment-17169458
 ] 

Ralph Goers commented on LOG4J2-2831:
-------------------------------------

As you already noted you should look at the documentation for each component.  
There is no single list that identifies all the attributes of the various 
components that support runtime interpolation. You didn't link the 
stackoverflow article so I can't really comment on that, however if the answer 
was provided by me I would hope it would be correct, but I am sure I make 
mistakes now and then.

The RoutingAppender does support interpolation in the pattern attribute and the 
two sentences I highlighted above says that. "The pattern is evaluated against 
all the registered Lookups" is just a long winded, and more precise, way of 
saying that the pattern is interpolated. The FileAppender doesn't have any 
attributes that are interpolated at runtime as it wouldn't make any sense for 
any of them to be.

If you find any attributes that support runtime interpolation please open a new 
issue against those and, if you can, please provide a pull request to fix the 
documentation.

> Documentation doesn't list all the Appenders that can do runtime lookup
> -----------------------------------------------------------------------
>
>                 Key: LOG4J2-2831
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2831
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Horacio Mijail Anton Quiles
>            Priority: Major
>
> The Appenders documentation page doesn't seem to mention all the cases in 
> which lookups/property substitution are applied at runtime.
> For example, the Routing Appender evidently does runtime substitution, as 
> mentioned in 
> [https://logging.apache.org/log4j/2.x/manual/configuration.html#PropertySubstitution]
>  . This page also says "Not all elements support resolving variables at 
> runtime. Components that do will specifically call that out in their 
> documentation. "
> However this is not called out in 
> [https://logging.apache.org/log4j/2.x/manual/appenders.html#RoutingAppender]
> If "their documentation" means some other page, it'd be good to link to it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to