I don't like using print statement for logging, so, I was looking for a proper framework, kind of a log4j for Python. I happens that python (>=2.3) includes such a tool. But, the official documentation is kind of criptic so, take a look a this article who explains it with working examples ONLamp.com -- Python Standard Logging