codahale/logula — pull request #4 by jdanbrown (2012-08-06 01:36:19+00:00)
Title: 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.