'Logs the string representation of the specified element.
The element specified with ``source`` and ``xpath`` is first converted
into a string using `Element To String` keyword internally. The
resulting string is then logged using the given ``level``.
The logged string is also returned.'

def log_element(self, source, level='INFO', xpath='.'):

    string = self.element_to_string(source, xpath)
    logger.write(string, level)
    return string
