pexpect and logging integration

Lars Stavholm stava at
Wed Mar 10 06:31:19 CET 2010

Hi all,

has anyone managed to integrate pexpect and logging?

I.e., I'd like to be able to pick up the dialog,
commands sent and responses received, in my logging.
I know about the pexpect logfile, and I can log things
to stdout or stderr, but I really need to log using the
python logging library.

Any thoughts appreciated

More information about the Python-list mailing list