blob: 0bc00c138cadeec6509c230ff2181338c2472ce6 [file] [log] [blame]
Jonathan Corbet096ea522019-05-21 14:23:43 -06001# SPDX-License-Identifier: GPL-2.0
2#
3# Sphinx has deprecated its older logging interface, but the replacement
4# only goes back to 1.6. So here's a wrapper layer to keep around for
5# as long as we support 1.4.
6#
Jonathan Corbetf546ff02021-02-01 16:26:25 -07007# We don't support 1.4 anymore, but we'll keep the wrappers around until
8# we change all the code to not use them anymore :)
9#
Jonathan Corbet096ea522019-05-21 14:23:43 -060010import sphinx
Jonathan Corbetf546ff02021-02-01 16:26:25 -070011from sphinx.util import logging
Jonathan Corbet096ea522019-05-21 14:23:43 -060012
Jonathan Corbetf546ff02021-02-01 16:26:25 -070013logger = logging.getLogger('kerneldoc')
Jonathan Corbet096ea522019-05-21 14:23:43 -060014
15def warn(app, message):
Jonathan Corbetf546ff02021-02-01 16:26:25 -070016 logger.warning(message)
Jonathan Corbet096ea522019-05-21 14:23:43 -060017
18def verbose(app, message):
Jonathan Corbetf546ff02021-02-01 16:26:25 -070019 logger.verbose(message)
Jonathan Corbet096ea522019-05-21 14:23:43 -060020
Mauro Carvalho Chehab678a63f2020-10-30 08:40:30 +010021def info(app, message):
Jonathan Corbetf546ff02021-02-01 16:26:25 -070022 logger.info(message)