[ 
https://issues.apache.org/jira/browse/LOG4J2-2528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ralph Goers resolved LOG4J2-2528.
---------------------------------
    Resolution: Information Provided

> Why is 'packages' property needed within Configuration tag
> ----------------------------------------------------------
>
>                 Key: LOG4J2-2528
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2528
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Appenders
>            Reporter: Baris
>            Priority: Minor
>              Labels: customappender, plugin
>
> Hi there;
> I've created my custom log appender and was working good on my local machine 
> on IntelliJ, but It took time to make it properly working on DEV environment 
> after fat jar is created and deployed.
> The reason was 'packages' property inside the tag 'Configuration' in log4j2 
> xml file. While it was working without the 'packages' property on my local, 
> it doesn't work with fat jar. 
> Why do I have to point the package of the custom appender file on log4j2 xml 
> to make it scan and found my file?  The custom appender class is already 
> annotated with
> {code:java}
> @Plugin(...){code}
>  and what I am expected to see is that log4j will find that class without any 
> package name given on log4j2.xml. 
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to