I am trying to upgrade to 5.1 and when calling:
As you suggested I get:
What am I doing wrong? How to get the logger with 5.1 ?
Code:
public static org.apache.log4j.Logger getLogger(Class c) { return ((Logger) com.isomorphic.util.DataTools.getLoggerRepository()).getLogger(c.getName()); }
Code:
Caused by: java.lang.ClassCastException: org.apache.log4j.Hierarchy cannot be cast to org.apache.log4j.Logger at de.mks_infofabrik.kids.server.Utils.getLogger(Utils.java:249) at de.mks_infofabrik.kids.server.Utils.<clinit>(Utils.java:60) ... 20 more
Comment