can I use SumoLogicAppender in a fat jar with Log4J2
I have a Java project built with gradle that runs in a fat jar. When I added a dependency for
api group: 'com.sumologic.plugins.log4j', name: 'sumologic-log4j2-appender', version: '1.9'
even before I tried to configure a SumoLogicAppender, my console appender stopped logging.
It works when I run
./gradlew run
but I get no logs at all when I run
./gradlew jar
java -jar build/libs/myapp.jar
I have seen a related issue reported on GitHub:
Sumo to Failed to load SumoLogicAppender when the app is a fat jar (https://github.com/SumoLogic/sumologic-log4j2-appender/issues/17)
but it is closed with a comment about a bug in log4j2. Does that mean logging to SumoLogic from a fat jar using Log4J2 is not supported? Is there a work around?
Please sign in to leave a comment.
Comments
0 comments