logging the element