Skip to main content

A library to dynamically enable debug through configuration

Project description

DynDebug - Dynamic Debug

This library provides the ability to dynamically enable or disable debug through environment configuration.

Usage

Use the factory method to create a debug instance. You provide a context value which is used to enable/disable debug through configuration.

debug = Debug('MyContext1')

Use the debug instance to produce debug content

debug('This is some debug')    

Enable the debug at run time by setting the DEBUG environment property to the list of contexts for which you want debug enabled.

export DEBUG=MyContext1,MyContext2,...

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

dyndebug-0.1.5.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

dyndebug-0.1.5-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file dyndebug-0.1.5.tar.gz.

File metadata

  • Download URL: dyndebug-0.1.5.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.9 Linux/5.11.0-40-generic

File hashes

Hashes for dyndebug-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ab868839a4ef0b90310c9d97fb0ed6694bbc3cf2af5662976db931cf065d7729
MD5 446b5e64acfaa6d7d06354aa3df7b2ee
BLAKE2b-256 2c7d752f1a28478f685ac3be958fd21a139093dc48e4c3f625927260037a1e2e

See more details on using hashes here.

File details

Details for the file dyndebug-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: dyndebug-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.9 Linux/5.11.0-40-generic

File hashes

Hashes for dyndebug-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 af12154a5864427424243f9f24c7fca6460e4f85df633f2c31199576d0bf3415
MD5 9ad6cb76f42155ab9a49687d5c2e9597
BLAKE2b-256 66ea77e07b77bb0d059259b95461723d815500dab9b3a19d67405f525d7bf287

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