[
https://issues.apache.org/jira/browse/LOG4J2-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16004826#comment-16004826
]
Matt Sicker commented on LOG4J2-1905:
-------------------------------------
There are several ways to do that already. The closest to what you're
requesting is via a [properties
file|https://logging.apache.org/log4j/2.x/manual/configuration.html#SystemProperties]
and using the sys:foo substitutions. You can also define them as
{{<property/>}} elements in the config file itself, and using [composite
config|https://logging.apache.org/log4j/2.x/manual/configuration.html#CompositeConfiguration],
you can combine files to make those properties external. Another way would be
via a bundle resource file ([see more about string substitution
here|https://logging.apache.org/log4j/2.x/manual/configuration.html#PropertySubstitution]).
This feature request is not invalid, but there are several possible ways to get
at what you're looking for with existing functionality.
> file resources in property substitution
> ---------------------------------------
>
> Key: LOG4J2-1905
> URL: https://issues.apache.org/jira/browse/LOG4J2-1905
> Project: Log4j 2
> Issue Type: New Feature
> Components: Configurators
> Affects Versions: 2.8.2
> Reporter: tsimba kely
> Priority: Critical
> Labels: features
> Fix For: 2.9
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> I just want to import a file like resources variable (ex:***.cfg) as a
> property for a substitution. it's easy, i think, than use a bundle. can you
> fix that please.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)