Log query element to console log.