flexlog-1.5.0
توضیحات
A convenience package to add a flexible logger easily.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flexlog-1.5.0 |
| نام | flexlog |
| نسخه کتابخانه | 1.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sven Flake |
| ایمیل نویسنده | sven.flake@optano.com |
| آدرس صفحه اصلی | https://gitlab.com/optano/flexlog |
| آدرس اینترنتی | https://pypi.org/project/flexlog/ |
| مجوز | - |
# README
This package shall make logging easier. These are the goals:
* Make setup of a logger with time-stamped log messages a no-brainer
* Make adding/removing additional log files a one-liner
Use it like this:
```python
from flexlog import cleanlogger
log = cleanlogger.CleanLogger("My Cool Module Name, Version 42")
# Log to console
log.info("Hello World!")
# Add a file
log.add_filelogger("mylogging.log")
log.debug("Log level of files is debug by default, but you can give it as parameter, too.")
import logging
log.add_filelogger("problemsonly.log", loglevel = logging.WARNING)
# Remove a file
log.remove_filelogger("mylogging.log")
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl flexlog-1.5.0:
pip install flexlog-1.5.0.whl
نصب پکیج tar.gz flexlog-1.5.0:
pip install flexlog-1.5.0.tar.gz