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.2.0.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.2.0-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dyndebug-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2cf21e435d9af1c8524faedc876a2bb8353cf61a42e562b18f6df04ac68862e3
MD5 6e7f205bfa2fca0465bc7fe3727e7ff6
BLAKE2b-256 a0ce3df981253af7bbf367ceb42fed32550a4c42cbe8f35a5417b373fbec128d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dyndebug-0.2.0-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.8.10 Linux/5.11.0-41-generic

File hashes

Hashes for dyndebug-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f1b2b813643acd37bf64df5acfcec02895116c3e975b3ea677da01cc64a12e7
MD5 3c7eaa71e2b4eddd42a313e9a7def621
BLAKE2b-256 c2540cfbf2b7d1aae56ad342301c65834ac421270c1f5d52b597b91389c45597

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