entryexiterrorlogging-0.0.3
توضیحات
Custom Logging Package for entry, exit and error logging
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | entryexiterrorlogging-0.0.3 |
| نام | entryexiterrorlogging |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Samar Chowdhury |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/entryexiterrorlogging/ |
| مجوز | - |
## QuickEntryExitErrorLogging
A sample python package deployment utility for custom logging. It has functions for entry, exit and error logging. It takes the input dictionary (if present) and the logging entry type.
If no input dictionary is present pass None. Output will be a JSON format logged printed as below
{"TestEVENT": "EXIT", "status": "SUCCESS", "statusCode": "0000"}
{"TestEVENT": "EXIT", "status": "SUCCESS", "statusCode": "0000", "entryType": "insertUser", "opName": "insertUser", "src": "Cloud_Functions", "action": "Insert User", "respTime": "1 secs"}
{"TestEVENT": "ERROR", "status": "FAILURE", "statusCode": "9999"}
## Usage
import entryexiterrorlogging
dict = {"entryType": "insertUser", "opName": "insertUser", "src": "Cloud_Functions", "action": "Insert User"}
entryexiterrorlogging.entryEventLog(dict, "TestEVENT")
entryexiterrorlogging.exitEventLog(dict, "TestEVENT")
entryexiterrorlogging.errorEventLog(dict, "TestEVENT")
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl entryexiterrorlogging-0.0.3:
pip install entryexiterrorlogging-0.0.3.whl
نصب پکیج tar.gz entryexiterrorlogging-0.0.3:
pip install entryexiterrorlogging-0.0.3.tar.gz