zolaris> self.log.write(time.ctime(time.time())) zolaris> But that prints nothing in the file assigned to log. Is there zolaris> something I should be doing extra?
There's no newline in there. You probably need to flush the file: self.log.write(time.ctime(time.time())) self.log.flush() You might want to write a newline after the time as well. If the logfile is line-buffered that will also provoke a flush. Skip -- http://mail.python.org/mailman/listinfo/python-list