public boolean detachMarker(String name) {
        if (name == null) {
            return false;
        }
        return (markerMap.remove(name) != null);
    }
Does the name marked already exist?
slf4j-api/src/main/java/org/slf4j/helpers/BasicMarkerFactory.java