Extract / Make log filtering configurable.
Carreau opened this issue · 0 comments
Carreau commented
Currently matplotlib generate logs while building the docs that pollute the output.
We need to find a way to silence and/or capture those.
Here is the current code:
Lines 985 to 1007 in 1740a4a
I'm thinking it would be great to find a way to filter from the configuration that looks like pytest filterwarnings, with some customization as of course we dont' have a warning class but a log level...
[tool.pytest.ini_options]
filterwarnings = [
"ignore::INFO",
# note the use of single quote below to denote "raw" strings in TOML
'error:function ham\(\) is deprecated:DEBUG',
]
If running example could also capture the logs, and insert them as output that would be a great addition.