[slf4j-user] Marker for object identification?

Boris Unckel boris.unckel.mlg at gmx.net
Thu Feb 8 22:32:39 CET 2007


Hello Ceki,

Ceki Gülcü wrote:
> Markers can have children, so they are a bit more than plain old strings.
Ah, thats the point.
If you provide a delete(Marker markerToRemove) method, it will include 
all its children.

Object xyz holds an reference to Marker("Boris")@1234 where 1234 is its 
Object.hashcode
Object foo calls delete with an reference to Marker("Boris")@1234
Object bar calls getMarker("Boris") and gets Marker("Boris")@6789

xyz and bar have both an equal but not same marker...

So removing is not the best solution?

Regards
Boris




More information about the slf4j-user mailing list