Hi Maxime, What is `sphinx-build.txt`? How did you create it?
And the code you pasted does not contain "WarningDeprecatedUsed". Is it same as "Warning"? Thanks, Takeshi KOMIYA 2019年1月24日(木) 3:55 Maxime Adam <gr4ph0...@gmail.com>: > > Hi I would like to log/raise an error so they are written in red in the > console and correctly logged into sphinx-build.txt where all others errors > are logged. > > I've tried to do so, but it's not working. Any hints. > > def Warning(app, doctree, docname): > > print '\nadfsfddsf\n' # Correctly printed but not written in the log file > > logger = sphinx.util.logging.getLogger(__name__) > logger.warning('MyErrorMessage', docname) > > > def setup(app): > > app.connect("doctree-resolved", WarningDeprecatedUsed) > > Any hints are welcome. > > Thanks in advance, > > > Regards > > Maxime! :) > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sphinx-users+unsubscr...@googlegroups.com. > To post to this group, send email to sphinx-users@googlegroups.com. > Visit this group at https://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users+unsubscr...@googlegroups.com. To post to this group, send email to sphinx-users@googlegroups.com. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.