Skip to main content

Making logs nicer since 2015!

Project description

Making logs nicer since 2015!

Version Downloads Travis CodeCov ReadTheDocs


sprockets.logging is available on the Python Package Index and can be installed via pip or easy_install:

pip install sprockets.logging


  • No external requirements


This examples demonstrates the most basic usage of sprockets.logging

import logging
import sys

import sprockets.logging

formatter = logging.Formatter('%(levelname)s %(message)s {%(context)s}')
handler = logging.StreamHandler(sys.stdout)

# Outputs: INFO Hi there {None}'Hi there')

# Outputs: INFO No KeyError {bah}'No KeyError', extra={'context': 'bah'})

# Outputs: INFO Now with context! {foo}
adapted = logging.LoggerAdapter(logging.Logger.root, extra={'context': 'foo'})'Now with context!')


sprockets.logging source is available on Github at


sprockets.logging is released under the 3-Clause BSD license.

Download files

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

Files for sprockets.logging, version 1.3.2
Filename, size File type Python version Upload date Hashes
Filename, size sprockets.logging-1.3.2-py2.py3-none-any.whl (7.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size sprockets.logging-1.3.2.tar.gz (9.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page