Fixed logging.StreamHandler for Python 2.6

Between Python 2.6 and 2.7, the StreamHandler parameters has been updated.

In 2.7: http://docs.python.org/2/library/logging.handlers.html#logging.StreamHandler
And in 2.6: http://docs.python.org/2.6/library/logging.html#logging.StreamHandler