[
https://issues.apache.org/jira/browse/LOG4J2-2831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17092897#comment-17092897
]
Ralph Goers edited comment on LOG4J2-2831 at 4/27/20, 12:29 AM:
----------------------------------------------------------------
The Plugin processor will evaluate Lookups for all attributes when it is
processing a configuration so calling it out explicitly isn't necessary.
Plugins choose which attributes they want to evaluate at runtime so those do
have to be documented explicitly. For example, the fileName attribute of the
RollingFileAppender isn't evaluated at runtime but you can still configure it
as fileName="${LOG_DIR}/app.log". Even log levels can be configured this way.
i am quite sure that is mentioned more than once in the documentation.
was (Author: [email protected]):
The Plugin processor will evaluate Lookups for all attributes when it is
processing a configuration so calling it out explicitly isn't necessary.
Plugins choose which attributes they want to evaluate at runtime so those do
have to be documented explicitly. For example, the fileName attribute isn't
evaluated at runtime but you can still configure it as
fileName="${LOG_DIR}/app.log". Even log levels can be configured this way. i
am quite sure that is mentioned more than once in 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)