def caplog(self) -> str:
        """Return captured log lines, if log capturing is enabled.

        .. versionadded:: 3.5
        """
        return "\n".join(
            content for (prefix, content) in self.get_sections("Captured log")
        )
Return captured log lines, if log capturing is enabled.

        .. versionadded:: 3.5
        
src/_pytest/reports.py