[
https://issues.apache.org/jira/browse/LOG4J2-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15182341#comment-15182341
]
Matt Sicker commented on LOG4J2-1308:
-------------------------------------
Existing properties configs would still work, I got rid of the plural form for
pre-declaring names. The names are inferred based on the next part of the key
(e.g., logger.foo.name infers a logger named foo).
> Remove need to pre-specify appender names et al. in property file config
> format
> -------------------------------------------------------------------------------
>
> Key: LOG4J2-1308
> URL: https://issues.apache.org/jira/browse/LOG4J2-1308
> Project: Log4j 2
> Issue Type: Improvement
> Components: Configurators
> Affects Versions: 2.4, 2.5
> Reporter: Matt Sicker
> Assignee: Matt Sicker
>
> In the .properties config file format, several plugin types currently require
> you to declare names ahead of time. For instance:
> {code}
> appenders = foo, bar, baz
> appender.foo.type = Console
> appender.bar.type = File
> appender.baz.type = List
> # ...
> {code}
> would be transformed into
> {code}
> appender.foo.type = Console
> appender.bar.type = File
> appender.baz.type = List
> # ...
> {code}
> These names should be inferable by their first usage. Then the appenders,
> filters, loggers, etc., properties can all be safely ignored for backwards
> compatibility with 2.4/2.5.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]