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
but I get no logs at all when I run
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.