Why don't you redirect stdout or stderr
#******************************************************************************* class Debug_Stderr: __m_text = '' __m_log_text = None __m_dbg = None __m_refresh_count = 0 #******************************************************************************* def __init__(self): #******************************************************************************* def write(self,p_string): #your code here . . . my_debug = Debug_Stderr() sys.stderr = my_debug print >> sys.stderr, 'this will go into the above write method' -- *************************** Philippe C. Martin SnakeCard LLC www.snakecard.com *************************** -- http://mail.python.org/mailman/listinfo/python-list