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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dyndebug-0.1.7.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.1.7.tar.gz
Algorithm Hash digest
SHA256 e13446efecfd97ca1c863d3e9429908690a961971931de7fe9dca144be880592
MD5 91b3de4adc3550bf67614fb8b54bc0ef
BLAKE2b-256 4480c42f71e501395041486e203a4db335244c556c1e961c90c4d0aa655ed817

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dyndebug-0.1.7-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.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2b88c0634d5cf06789548a0bf4ed69e7dd86c9d1da0472d32e6c4edb70164f9e
MD5 5fe202fdb4f1fe195043a9faf0ba2261
BLAKE2b-256 299e1b85a112a414dd9fb18da7505893124c0074bef5225cf357a4fe8ecb7646

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