semvec/pypi-packages huggingface dataset:
cf-event-logging 1.0.0
Custom Logging Package for entry, exit and error event logging
Requires Python: >=3.6

## eventlogging

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. Comes in handy for cloud functions

{"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 cfeventlogging

dict = {"entryType": "insertUser", "opName": "insertUser", "src": "Cloud_Functions", "action": "Insert User"}

eventlogging.entryEventLog(dict, "TestEVENT")

eventlogging.exitEventLog(dict, "TestEVENT")

eventlogging.errorEventLog(dict, "TestEVENT")