Hi, I'm Harlin and welcome to my blog. I write about Python, Alfresco and other cheesy comestibles.

Python - Simple and Concise Logging Setup

Here is a simple and concise logging setup for a Python module:

#!/usr/bin/env python
"""
A logging demo that shows most of all you'll ever need to know
concerning Python and logging.
"""
import logging
import sys


logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
log_format = logging ...

Read More