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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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