OpenNTI / sphinxcontrib-programoutput

Sphinx extension for capturing program output
BSD 3-Clause "New" or "Revised" License
37 stars 17 forks source link

Plugin Broken with Sphinx 2+: Logging API #29

Closed miili closed 5 years ago

miili commented 5 years ago

Hi there,

thanks for maintaining this useful plugin!

In Sphinx 2+ Sphinx object has no logging interface and

app.warn('Unexpected return code {0} from command {1}'.format(
         returncode, command))

in https://github.com/NextThought/sphinxcontrib-programoutput/blob/master/src/sphinxcontrib/programoutput/__init__.py#L223 fails.

The new approach is documented here https://www.sphinx-doc.org/en/master/extdev/logging.html

Best, M