Logo Search packages:      
Sourcecode: kayali version File versions  Download package

def pexpect::spawn::setlog (   self,
  fileobject 
)

This sets logging output to go to the given fileobject.
Set fileobject to None to stop logging. 
Example:
    child = pexpect.spawn('some_command')
    fout = file('mylog.txt','w')
    child.setlog (fout)
    ...

Definition at line 326 of file pexpect.py.

00326                                  :
        """This sets logging output to go to the given fileobject.
        Set fileobject to None to stop logging. 
        Example:
            child = pexpect.spawn('some_command')
            fout = file('mylog.txt','w')
            child.setlog (fout)
            ...
        """
        self.log_file = fileobject

    def setmaxread (self, maxread):


Generated by  Doxygen 1.6.0   Back to index