Python logging

Getting into logging module. Very robust.

Anybody get the logging to print to Maya I/O via a StreamHandler()? Works in 2011 but old 8.5 uses Python 2.4 and it seems it cannot handle the StreamHandler and log to Maya’s standard out.

I get a python2.4 error:

Traceback (most recent call last):

File “C:\Program Files (x86)\Autodesk\Maya8.5\bin\python24.zip\logging_init_.py”, line 740, in emit

File “C:\Program Files (x86)\Autodesk\Maya8.5\bin\python24.zip\logging_init_.py”, line 718, in flush

AttributeError: ‘maya.Output’ object has no attribute ‘flush’

Anybody find a decent work-around of this?