'Wrapper for `Get File` that also logs the returned file.
The file is logged with the INFO level. If you want something else,
just use `Get File` and the built-in keyword `Log` with the desired
level.
See `Get File` for more information about ``encoding`` and
``encoding_errors`` arguments.
``encoding_errors`` argument is new in Robot Framework 2.8.5.'

def log_file(self, path, encoding='UTF-8', encoding_errors='strict'):

    content = self.get_file(path, encoding, encoding_errors)
    self._info(content)
    return content
