https://github.com/torvalds/linux
Raw File
Tip revision: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 authored by Linus Torvalds on 26 May 2024, 22:20:12 UTC
Linux 6.10-rc1
Tip revision: 1613e60
kernellog.py
# 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.
#
# 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 :)
#
import sphinx
from sphinx.util import logging

logger = logging.getLogger('kerneldoc')

def warn(app, message):
    logger.warning(message)

def verbose(app, message):
    logger.verbose(message)

def info(app, message):
    logger.info(message)
back to top