I have a logging function that takes the calling object as a parameter. I then call getClass().getSimpleName() on it so that I can easily get the class name to add to my log en
Alter method log to:
public static void log(Class c, String msg){
do_log(c.getSimpleName()+" "+msg);
}
and if do_something_static is in class MyClassWithStatics then do_something_static would become:
public static void do_something_static(){
log(MyClassWithStatics.class, "Some message from static");
}