minilog-2.3.1
2.3.1
2.3
2.2b1
2.2
2.1b1
2.1
2.0b2
2.0b1
2.0.1
2.0
1.6b6
1.6b5
1.6b4
1.6b3
1.6b2
1.6b1
1.6
1.5b2
1.5b1
1.5
1.4b2
1.4b1
1.4.1
1.4
1.3
1.2a3
1.2a2
1.2a1
1.2.6
1.2.5
1.2.4
1.2.3b1
1.2.3
1.2.2
1.2.1
1.2
1.1b1
1.1a3
1.1a2
1.1a1
1.1
1.0
0.5
0.4b3
0.4b2
0.4b1
0.4a1
0.4.1b1
0.4
0.3.1
0.3
0.2.1
0.2
0.1
0.0.1
0.0.0
2.3.1
2.3
2.2b1
2.2
2.1b1
2.1
2.0b2
2.0b1
2.0.1
2.0
1.6b6
1.6b5
1.6b4
1.6b3
1.6b2
1.6b1
1.6
1.5b2
1.5b1
1.5
1.4b2
1.4b1
1.4.1
1.4
1.3
1.2a3
1.2a2
1.2a1
1.2.6
1.2.5
1.2.4
1.2.3b1
1.2.3
1.2.2
1.2.1
1.2
1.1b1
1.1a3
1.1a2
1.1a1
1.1
1.0
0.5
0.4b3
0.4b2
0.4b1
0.4a1
0.4.1b1
0.4
0.3.1
0.3
0.2.1
0.2
0.1
0.0.1
0.0.0
توضیحات
Minimalistic wrapper for Python logging.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | minilog-2.3.1 |
| نام | minilog |
| نسخه کتابخانه | 2.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jace Browning |
| ایمیل نویسنده | jacebrowning@gmail.com |
| آدرس صفحه اصلی | https://pypi.org/project/minilog |
| آدرس اینترنتی | https://pypi.org/project/minilog/ |
| مجوز | MIT |
# minilog
A minimalistic logging wrapper for Python.
[](https://github.com/jacebrowning/minilog/actions)
[](https://ci.appveyor.com/project/jacebrowning/minilog)
[](https://codecov.io/gh/jacebrowning/minilog)
[](https://scrutinizer-ci.com/g/jacebrowning/minilog)
[](https://pypi.org/project/minilog)
[](https://pypi.org/project/minilog)
[](https://pypistats.org/packages/minilog)
## Usage
Every project should utilize logging, but for simple use cases, this requires a bit too much boilerplate. Instead of including all of this in your modules:
```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",
)
```
with this package you can simply:
```python
import log
def greet(name):
log.info("Hello, %s!", name)
if __name__ == "__main__":
log.init()
```
It will produce the exact same standard library `logging` records behind the scenes with automatic formatting for non-strings.
## Installation
Install this library directly into an activated virtual environment:
```text
$ pip install minilog
```
or add it to your [Poetry](https://poetry.eustace.io/) project:
```text
$ poetry add minilog
```
## Documentation
To view additional options, please consult the [full documentation](https://minilog.readthedocs.io/en/latest/logging/).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <4.0,>=3.8 | Python |
نحوه نصب
نصب پکیج whl minilog-2.3.1:
pip install minilog-2.3.1.whl
نصب پکیج tar.gz minilog-2.3.1:
pip install minilog-2.3.1.tar.gz