[ 
https://issues.apache.org/jira/browse/LOG4J2-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16092987#comment-16092987
 ] 

Martin Schröder commented on LOG4J2-1421:
-----------------------------------------

I'm running into the same issue with the prometheus-client (latest source is 
[here|https://github.com/prometheus/client_java/blob/master/simpleclient_log4j2/src/main/java/io/prometheus/client/log4j2/InstrumentedAppender.java]):
 It loads in IntelliJ but not in a Spring Boot fat jar. The plugin is annotated 
with

{code:java}
@Plugin(name = "Prometheus", category = "Core", elementType = "appender")
{code}

A similar ticket: LOG4J2-673


> Custom plugins packaged in jar files are not loaded by "packages" property 
> mecanism
> -----------------------------------------------------------------------------------
>
>                 Key: LOG4J2-1421
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1421
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Plugins
>    Affects Versions: 2.6
>            Reporter: Anthony Maire
>         Attachments: log4j-plugin-load-issue.zip
>
>
> the "packages" attribute in configuration file works properly to load custom 
> plugins from Eclipse. However, if the plugin class is packaged alone in a jar 
> file (without the Log4j2Plugins.dat file in it), the "packages" property load 
> mecanism is not working.
> 2016-06-09 19:40:44,823 main DEBUG Took 0,001222 seconds to load 0 plugins 
> from package test



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

Reply via email to