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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dyndebug-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 9b6f2081d96e901e2c21c5a614992be3addbfd6eaca6e2a23ded81dd099c449d
MD5 2c8c85c2464e119e573fdf7a01cdc451
BLAKE2b-256 2c1408f0cc3c85f37cec6603c356b40416a8b7a15390fbd89ba580346efdd62f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dyndebug-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7fbffa89f7a69679a440cdf90622ada10732acb63badea88facd015330cf1081
MD5 92af22c4ce8f8f221e0e7e88d9964dae
BLAKE2b-256 c8efe757bb10990e6d554ad0e484b1f8fe7414075615f4e311709bef3e47611e

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