minilog:用于Python日志记录的简约包装器

时间:2021-05-02 19:55:15
【文件属性】:
文件名称:minilog:用于Python日志记录的简约包装器
文件大小:61KB
文件格式:ZIP
更新时间:2021-05-02 19:55:15
Python 小日志 Python的简约日志记录包装器。 用法 每个项目都应使用日志记录,但是对于简单的用例,这需要太多样板。 而不是将所有这些都包含在您的模块中: import logging log = logging . getLogger ( __name__ ) def greet ( name ): log . info ( "Hello, %s!" , name ) if __name__ == "__main__" : logging . basicConfig ( level = logging . INFO , format = "%(levelname)s: %(name)s: %(message)s" , ) 使用此软件包,您可以简单地: import log def greet ( name ): log .
【文件预览】:
minilog-main
----.scrutinizer.yml(206B)
----.verchew.ini(272B)
----.pycodestyle.ini(325B)
----.gitattributes(37B)
----log()
--------settings.py(102B)
--------helpers.py(2KB)
--------utils.py(2KB)
--------state.py(73B)
--------__init__.py(224B)
--------logger.py(893B)
--------tests()
--------filters.py(741B)
----notebooks()
--------profile_default()
----.python-version(6B)
----poetry.lock(56KB)
----.pydocstyle.ini(493B)
----.mypy.ini(118B)
----CONTRIBUTING.md(1KB)
----.travis.yml(532B)
----mkdocs.yml(482B)
----pytest.ini(200B)
----.isort.cfg(267B)
----scent.py(2KB)
----LICENSE.md(1KB)
----README.md(2KB)
----.pylint.ini(15KB)
----Makefile(6KB)
----.appveyor.yml(775B)
----docs()
--------about()
--------index.md(625B)
--------options.md(2KB)
--------requirements.txt(30B)
--------logging.md(621B)
----tests()
--------__init__.py(169B)
--------demo.py(64B)
--------conftest.py(125B)
--------other.py(151B)
--------test_records.py(2KB)
----.gitignore(538B)
----pyproject.toml(2KB)
----bin()
--------open(336B)
--------verchew(10KB)
--------checksum(434B)
--------update(2KB)
----CHANGELOG.md(2KB)
----.coveragerc(230B)

网友评论