A sensible Python logging configuration
Python Makefile Batchfile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sensible
tests
.gitignore
Makefile
README
setup.py

README

A "Sensible" Logging Configuration

You simply do this:

>>> from sensible.loginit
import logger
>>> log = logger("MyApp")
>>> log.info("stuff")
2009-08-04 23:56:22,583 - MyApp - INFO - stuff
Environmental Variable

If you want to print log.debug messages, set the environmental variable:

LOGGING_DEBUG = 1