Skip to main content

Decorator function for function level logging

Project description

ecgai-logging

Logging decorator for both sync and async functions. Logging is carried out at logging levels DEBUG and INFO.

INFO logs Module name, Method name, Variables, Returns, Elapsed time

DEBUG logs Module name, Method name, Variables, Returns, Elapsed time, Synchronous or Asynchronous function type, Working directory, Start time, End time All times recorded in UTC

Exceptions are logged if the exception is not handled in code or the exception is handled and raised. If the exception is handled in code and not raised it is not logged by this decorator

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

ecgai-logging-0.0.4.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

ecgai_logging-0.0.4-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file ecgai-logging-0.0.4.tar.gz.

File metadata

  • Download URL: ecgai-logging-0.0.4.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for ecgai-logging-0.0.4.tar.gz
Algorithm Hash digest
SHA256 65d695e4d6fd497248c26349e4309a2454af57eac9d95b035ed741244e578c7c
MD5 9355cd63ceb0d3fcb4d3d6e6546368de
BLAKE2b-256 89c7941dd7873ea5465e03e665c3f2ce8224510abbe008ac3da2ae5f239f7c9f

See more details on using hashes here.

File details

Details for the file ecgai_logging-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ecgai_logging-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for ecgai_logging-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a9fc2a135d0e848674278b85ed93a5ebff9776346c96310b7125785bfe2b1f9c
MD5 d74ad1c6a2d3a3b7de179000d28db413
BLAKE2b-256 af2f74e461fb28ec5de9d40a014a06a8adccaf809294c8a7bec0334171e3f39a

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