How to access the Context Menu Info?
Copy and Paste.
Previously available via bpy.ops.ui.reports_to_textblock()
How to read all ‘recent reports’ from info window
How do I get the Info window&#39;s log text with Python?
The operator appears unavailable in 2.8, however it is a simple matter of selecting and copying from the info area
Silly test script, toggles into the info area, selects all, copies, toggles back to text area and pastes.
import bpy

context = bpy.context

# change to info
context.area.type = 'INFO'
bpy.ops.info.select_all()
bpy.ops.info.report_copy()
context.area.type = 'TEXT_EDITOR'
bpy.ops.text.paste() # silly

The clipboard contents
&gt;&gt;&gt; for line in C.window_manager.clipboard.splitlines():
...     line
...     
&quot;bpy.context.area.ui_type = 'INFO'&quot;
&quot;bpy.context.area.ui_type = 'TEXT_EDITOR'&quot;
'bpy.ops.text.run_script()'
'Python script failed, check the message in the system console'
&quot;bpy.context.area.ui_type = 'TEXT_EDITOR'&quot;
&quot;bpy.context.area.ui_type = 'INFO'&quot;
&quot;bpy.context.area.ui_type = 'TEXT_EDITOR'&quot;
'bpy.ops.text.run_script()'

See the docs for info area space on toggling info report types.  a is an 'INFO' type area
&gt;&gt;&gt; a.type
'INFO'

&gt;&gt;&gt; a.spaces.active.show_
                         locked_time
                         region_header
                         report_debug
                         report_error
                         report_info
                         report_operator
                         report_warning