Put the output from all my programs in one place

alex23 wuwei23 at gmail.com
Tue Sep 2 08:08:10 CEST 2008


On Sep 2, 6:30 am, Jesse Aldridge <JesseAldri... at gmail.com> wrote:
> I want to put all the output from all of my python programs in one
> place.

Have you considered using the python logging module?

http://docs.python.org/lib/module-logging.html
http://www.onlamp.com/pub/a/python/2005/06/02/logging.html

You can define handlers within a program or via a config file. Then
you just need to specify that they all log to the same location, which
you could define via an environment variable...



More information about the Python-list mailing list