[
https://issues.apache.org/jira/browse/LOG4J2-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15182334#comment-15182334
]
Matt Sicker commented on LOG4J2-1308:
-------------------------------------
Although I'm noticing that supporting this is much less straightforward for
logger names as those can contain periods (while the other names normally
don't). I'd hate to make a special case for that, but it's always refactorable!
> 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]