Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 #
0003 # Sphinx has deprecated its older logging interface, but the replacement
0004 # only goes back to 1.6.  So here's a wrapper layer to keep around for
0005 # as long as we support 1.4.
0006 #
0007 # We don't support 1.4 anymore, but we'll keep the wrappers around until
0008 # we change all the code to not use them anymore :)
0009 #
0010 import sphinx
0011 from sphinx.util import logging
0012 
0013 logger = logging.getLogger('kerneldoc')
0014 
0015 def warn(app, message):
0016     logger.warning(message)
0017 
0018 def verbose(app, message):
0019     logger.verbose(message)
0020 
0021 def info(app, message):
0022     logger.info(message)