byClassName

A strategy which uses the Class name of the given key for log aggregation. This is useful when you need to aggregate over specific exceptions or similar type-distinguished instances.

This is an alternative strategy to byClass which avoids holding onto the class instance and avoids any issues with class unloading. However it may conflate classes if applications use complex arrangements of custom of class-loaders, but this should be extremely rare.