def warn(self, msg, *args, **kwargs):
"""
Delegate warn() to warning().
This is provided as a convenience method in Logger but it is apparently
missing from LoggerAdapter, see
https://hg.python.org/cpython/file/2.7/Lib/logging/__init__.py#l1181
"""
self.warning(msg, *args, **kwargs)
评论列表
文章目录