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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dyndebug-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 de8d0177600a27025f55b48bc695587f4ef2d4345889177ab03dcc9e613ef36b
MD5 0587e2803a44cd151158faba14bb1b10
BLAKE2b-256 52211df1fb2c4c777861bf521f9ea77ca65fd23fb01f648671a17744d38593bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dyndebug-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6088450fdeec16ff37d0b43ff49222acb8c23b59474acd042349473d5cb908d4
MD5 98422af0386e75dba5d90a9347fd86c1
BLAKE2b-256 ad440041d21366270aee611032048c5a81f2225f91fc17c7fc1a0f7bcc2b1cf6

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