title: PyTest Logging Capture & Output Control
body: <p>I am using the JSON report (--json-report) to provide me a json report file that I can programmatically post process at the end of a test session. I want only the post processed report to be displayed at stdout/stderr. How do I &quot;programmatically disable&quot; pytest from capturing &amp; outputting to the screen, and &quot;programmatically enable&quot; after post processing completion and only show the post processed report ???</p>