Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

entryexiterrorlogging-0.0.3.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

entryexiterrorlogging-0.0.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for entryexiterrorlogging-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1d55fac868c0caf1b6fd0d929be404e32272f56f2754dd8323167c5441ce9347
MD5 eddbe4b6e666da5d4cc78dca1141f2c6
BLAKE2b-256 26c6bf09fb4762bb3b715ca8efc2ed8d720faab33fa78f5d95929a076d52ea9e

See more details on using hashes here.

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

Hashes for entryexiterrorlogging-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2afcbf3b3e9dd3096b2e533925d9e4c46bd3381260e73a9782bc0b2f79ef6168
MD5 60be826a53bd3aa48d38895f415355f5
BLAKE2b-256 a28287688b8cf7ee093389336cfc47d6567753697debc39e3b20abb38f6227b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page