I'm in the middle of a upgrade for an application currently moving Spring core from 4.3 to 5.2 (yeah, trying the milestone expecting the LTS release) and it requires us to move to log4j2.
The problem we have so far is that I cannot seem to find anything on how to make JAMon work with this new configuration. The appender fail with this message:
java.lang.NoSuchMethodException: org.apache.log4j.api.LoggingEvent.<init>(Ljava/lang/String;Lorg/apache/log4j/Category;Jorg/apache/log4j/Priority...)
And, in the project, the last we heard from maintainer was this (looks like the current version does not support changing appenders to log4j2).
E.g. in log4j.jsp, it imports
<%@ page import="com.jamonapi.MonitorFactory, org.apache.log4j.Logger, org.apache.log4j.PropertyConfigurator, java.util.Properties" %>
and the JAMonAppender class in the source code says
public class JAMonAppender extends AppenderSkeleton {
/* Prefix for this classes jamon monitor labels */
private final String PREFIX = "com.jamonapi.log4j.JAMonAppender.";
// any of these poperties can be overridden via log4j configurators.
private int bufferSize = 100;
private String units = "log4j"; // units in jamon montiors
So it seems to be hardwired to ye olde log4j. Has anyone managed to make it work?