Custom Logging Package for entry, exit and error logging
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entryexiterrorlogging-0.0.3.tar.gz.
File metadata
- Download URL: entryexiterrorlogging-0.0.3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d55fac868c0caf1b6fd0d929be404e32272f56f2754dd8323167c5441ce9347
|
|
| MD5 |
eddbe4b6e666da5d4cc78dca1141f2c6
|
|
| BLAKE2b-256 |
26c6bf09fb4762bb3b715ca8efc2ed8d720faab33fa78f5d95929a076d52ea9e
|
File details
Details for the file entryexiterrorlogging-0.0.3-py3-none-any.whl.
File metadata
- Download URL: entryexiterrorlogging-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2afcbf3b3e9dd3096b2e533925d9e4c46bd3381260e73a9782bc0b2f79ef6168
|
|
| MD5 |
60be826a53bd3aa48d38895f415355f5
|
|
| BLAKE2b-256 |
a28287688b8cf7ee093389336cfc47d6567753697debc39e3b20abb38f6227b4
|