classlogging-1.0.2
توضیحات
Class-based logging facility
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | classlogging-1.0.2 |
| نام | classlogging |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Artem Novikov |
| ایمیل نویسنده | artnew@list.ru |
| آدرس صفحه اصلی | https://github.com/reartnew/classlogging |
| آدرس اینترنتی | https://pypi.org/project/classlogging/ |
| مجوز | MIT |
# classlogging
Class-based logging facility.
## Installation
```shell
pip install classlogging
```
## Usage example
```python
import classlogging
class MyClass(classlogging.LoggerMixin):
def test_log_value(self, value: str) -> None:
self.logger.debug(f"Got value: {value}")
if __name__ == "__main__":
classlogging.configure_logging(level=classlogging.LogLevel.DEBUG)
MyClass().test_log_value("Foo")
# Writes to stderr:
# 2022-01-01 12:34:56,789 DEBUG [__main__.MyClass] Got value: Foo
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl classlogging-1.0.2:
pip install classlogging-1.0.2.whl
نصب پکیج tar.gz classlogging-1.0.2:
pip install classlogging-1.0.2.tar.gz