mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Old helpers are completely broken for reST, Google and NumPy docstring formats. (cherry picked from commit 9ce7f986164ca7a61710eefab38934837a36f00b) IJ-CR-16877 GitOrigin-RevId: 34f27150854279ba98afb8bb23711e8a62fa58c0
27 lines
634 B
Python
Executable File
27 lines
634 B
Python
Executable File
# -*- coding: utf-8 -*-
|
|
# Copyright (c) 2018 the Pockets team, see AUTHORS.
|
|
# Licensed under the BSD License, see LICENSE for details.
|
|
|
|
"""
|
|
An easy to import AutoLogger instance!
|
|
|
|
>>> import logging, sys
|
|
>>> logging.basicConfig(format="%(name)s: %(message)s", stream=sys.stdout)
|
|
>>> from pockets.autolog import log
|
|
>>> log.error("Always log from the correct module.Class!") # doctest: +SKIP
|
|
pockets.autolog: Always log from the correct module.Class!
|
|
|
|
See Also:
|
|
`pockets.logger.AutoLogger`
|
|
"""
|
|
|
|
from __future__ import absolute_import, print_function
|
|
|
|
from pockets.logging import AutoLogger
|
|
|
|
|
|
__all__ = ["log"]
|
|
|
|
|
|
log = AutoLogger()
|