arlogger-1.0.2
توضیحات
Send urgent and daily log files to a remote server
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | arlogger-1.0.2 |
| نام | arlogger |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mirza ATLI |
| ایمیل نویسنده | mirza.atli@ardictech.com |
| آدرس صفحه اصلی | https://bitbucket.org/asrturk/ar-ai-logger/src/master/ |
| آدرس اینترنتی | https://pypi.org/project/arlogger/ |
| مجوز | MIT |
### ARDIC AI Logger Package
A package that sends urgent logs to specified URL to be processed and displayed. Uploads daily log files to specified URL periodically.
### Usage
```python
from arlogger import *
def test_func():
logger.debug("This is a debug message")
logger.info("This is an info message")
logger.warning("This is a warning message")
logger.error("This is an error message")
logger.critical("This is a critical message")
if __name__ == "__main__":
url = "" # URL of the server that will process the incoming logs
projectName = "ARDIC AI Logger Test"
logger = ArLogger().setUrl(url=url, projectName=projectName).setLevel(httpLevel=logging.ERROR, localLevel=logging.DEBUG)
test_func()
```
The output will contain the following information; log time, function name that generated the log, severity of log and the message of the log.
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
نحوه نصب
نصب پکیج whl arlogger-1.0.2:
pip install arlogger-1.0.2.whl
نصب پکیج tar.gz arlogger-1.0.2:
pip install arlogger-1.0.2.tar.gz