pexpect and logging integration

Lars Stavholm stava at telcotec.se
Wed Mar 10 00:31:19 EST 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
/Lars




More information about the Python-list mailing list