You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Seweryn Habdank-Wojewodzki (JIRA)" <ji...@apache.org> on 2017/08/01 14:31:00 UTC

[jira] [Closed] (LOG4J2-1972) The "packages" attribute in appender configuration reporting ERROR

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

Seweryn Habdank-Wojewodzki closed LOG4J2-1972.
----------------------------------------------
    Resolution: Done

> The "packages" attribute in appender configuration reporting ERROR
> ------------------------------------------------------------------
>
>                 Key: LOG4J2-1972
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1972
>             Project: Log4j 2
>          Issue Type: Question
>         Environment: Linux Red Hat.
>            Reporter: Seweryn Habdank-Wojewodzki
>            Priority: Minor
>
> We are using Log4j2 v. 2.8. 
> We have own appender configuration more less:
> {code:xml}
> <MyAppender name="MyAppender" ignoreExceptions="false" packages="my.company.myappender.log4j2">
> ...
>       <CustomField name="sourceApplication">my-app</CustomField>
> </MyAppender>
> {code}
> In the documentation [Property Substitution|https://logging.apache.org/log4j/2.x/manual/configuration.html#Property%20Substitution] we can read:
> packages 	A comma separated list of package names to search for plugins. Plugins are only loaded once per classloader so changing this value may not have any effect upon reconfiguration.
> But anyhow we got error:
> {{2017-07-10 16:37:03,017 localhost-startStop-3 ERROR MyAppender contains an invalid element or attribute "packages"}}
> How shall we handle this attribute?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)