Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / Documentation / sphinx / kernellog.py
blob0bc00c138cadeec6509c230ff2181338c2472ce6
1 # SPDX-License-Identifier: GPL-2.0
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.
7 # 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 :)
10 import sphinx
11 from sphinx.util import logging
13 logger = logging.getLogger('kerneldoc')
15 def warn(app, message):
16 logger.warning(message)
18 def verbose(app, message):
19 logger.verbose(message)
21 def info(app, message):
22 logger.info(message)