(bug 37714) Use log type in target object when deleting logs of the same type