You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Pavel_K (Jira)" <ji...@apache.org> on 2022/06/23 16:10:00 UTC
[jira] [Comment Edited] (LOG4J2-3451) Custom appenders on module path must be found
[ https://issues.apache.org/jira/browse/LOG4J2-3451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17558152#comment-17558152 ]
Pavel_K edited comment on LOG4J2-3451 at 6/23/22 4:09 PM:
----------------------------------------------------------
[~pkarwasz] Thank you very much for such detailed explanation. Then I think this issue should be closed, because services are much better then package scanning and particularly if we work in JPMS. So, if module path, then everything that is on module path is JPMS module. What do you think?
was (Author: pavel_k):
[~pkarwasz] Thank you very much for such detailed explanation. Then I think this issue should be closed, because JPMS services are much better then package scanning and particularly if we work in JPMS. So, if module path, then everything that is on module path is JPMS module. What do you think?
> Custom appenders on module path must be found
> ---------------------------------------------
>
> Key: LOG4J2-3451
> URL: https://issues.apache.org/jira/browse/LOG4J2-3451
> Project: Log4j 2
> Issue Type: Improvement
> Affects Versions: 2.14.1
> Reporter: Pavel_K
> Assignee: Piotr Karwasz
> Priority: Major
>
> Currently if custom appender is added via config, something like this:
> {code:java}
> <Configuration packages="com.yourcompany.yourcustomappenderpackage">
> <Appenders>
> <MyCustomAppender name="ABC" otherAttribute="...">
> ...
> </Appenders>
> <Loggers><Root><AppenderRef ref="ABC" /></Root></Loggers>
> </Configuration>
> {code}
> Log4j2 will find this appender class only if this class is on class path. I suggest that appenders on module path must also be found.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)