2019-05-22 04:23:43 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
#
|
|
|
|
# Sphinx has deprecated its older logging interface, but the replacement
|
|
|
|
# only goes back to 1.6. So here's a wrapper layer to keep around for
|
|
|
|
# as long as we support 1.4.
|
|
|
|
#
|
2021-02-02 07:26:25 +08:00
|
|
|
# We don't support 1.4 anymore, but we'll keep the wrappers around until
|
|
|
|
# we change all the code to not use them anymore :)
|
|
|
|
#
|
2019-05-22 04:23:43 +08:00
|
|
|
import sphinx
|
2021-02-02 07:26:25 +08:00
|
|
|
from sphinx.util import logging
|
2019-05-22 04:23:43 +08:00
|
|
|
|
2021-02-02 07:26:25 +08:00
|
|
|
logger = logging.getLogger('kerneldoc')
|
2019-05-22 04:23:43 +08:00
|
|
|
|
|
|
|
def warn(app, message):
|
2021-02-02 07:26:25 +08:00
|
|
|
logger.warning(message)
|
2019-05-22 04:23:43 +08:00
|
|
|
|
|
|
|
def verbose(app, message):
|
2021-02-02 07:26:25 +08:00
|
|
|
logger.verbose(message)
|
2019-05-22 04:23:43 +08:00
|
|
|
|
2020-10-30 15:40:30 +08:00
|
|
|
def info(app, message):
|
2021-02-02 07:26:25 +08:00
|
|
|
logger.info(message)
|