logula
logula copied to clipboard
Support anonymous classes: Use getName instead of getCanonicalName
Creating anonymous subclasses of classes that use Logging trips an NPE, e.g. http://stackoverflow.com/questions/9958977/logula-logging-on-anonymous-class-instances
Since getCanonicalName returns null in some cases, like anonymous classes, the simplest fix seemed to be to just forgo canonical names and use getName instead.
I confirm this issue. This one is a showstopper.