by Class
A strategy which uses the Class of the given key for log aggregation. This is useful when you need to aggregate over specific exceptions or similar type-distinguished instances.
Note that using this strategy will result in a reference to the Class object of the key being retained indefinitely. This will prevent class unloading from occurring for affected classes, and it is up to the caller to decide if this is acceptable or not.