Skip to main content


Project description


Easily bind new fields into your logger instances.

# Original logger
logger = logging.getLogger('a')'Hello')

logger = logbind.bind(logger, id=12345)'Hello')  # <- This logrecord has an extra field "id"

logger = logbind.bind(logger, abc=67890)'Hello')  # <- logrecord has two extra fields: "id" and "abc"

This feature will be most useful with a structured logging formatter, such as JSON. You could try logjson for example.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for logbind, version 2017.11.7
Filename, size File type Python version Upload date Hashes
Filename, size logbind-2017.11.7-py2.py3-none-any.whl (13.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size logbind-2017.11.7.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page