python练习
Logzero is a Python package created by Chris Hager that simplifies logging with Python 2 and 3. Logzero makes it easier as a print statement to show information and debugging details.
Logzero是Chris Hager创建的Python程序包,它简化了Python 2和3的日志记录。Logzero使它更容易用作显示信息和调试详细信息的打印语句。
If you are wondering what logging is, I recommend that you read the previous article I wrote about “How to Run Machine Learning Experiments with Python Logging Module”, especially the first 3 sections.
如果您想知道什么是日志记录 ,我建议您阅读上一篇有关“如何使用Python日志记录模块运行机器学习实验”的文章 ,特别是前三部分。
In that article, you will learn:
在该文章中,您将学习:
- What is Logging? 什么是日志记录?
- Why logging is important. 为什么记录很重要。
- Applications of logging in different technology industries. 伐木在不同技术行业中的应用。
Logzero has different features that make it easier to use in Python projects. Some of these features are:
Logzero具有不同的功能,可以更轻松地在Python项目中使用。 其中一些功能是:
- Easy logging to console and/or file. 轻松记录到控制台和/或文件。
- Provides a fully configured standard Python logger object. 提供完整配置的标准Python记录器对象。
Pretty formatting, including level-specific colors in the console.
漂亮的格式,包括控制台中特定于级别的颜色 。
- works with all kinds of character encodings and special characters. 适用于各种字符编码和特殊字符。
- Compatible with Python 2 and 3. 与Python 2和3兼容。
- No further Python dependencies. 没有更多的Python依赖项。
安装 (Installation)
To install logzero with pip run the following:
要使用pip安装logzero,请运行以下命令:
pip install -U logzero
You can also install logzero from the public