I found my problem it wasn't this piece of the problem it was another... Thanks. However if you want a working example go here.. http://www.onlamp.com/pub/a/python/2005/06/02/logging.html