google / goexpect

Expect for Go
BSD 3-Clause "New" or "Revised" License
759 stars 134 forks source link

Redirect non-verbose logging #48

Open zeocs opened 4 years ago

zeocs commented 4 years ago

Hello, thanks for this cool package! I am using the VerboseWriter option to redirect verbose logging to my implementation of io.Writer. However, it looks like there's no way to redirect goexpect's non-verbose logging in the same way, or am I missing something? I would like to be able to redirect both since I'm using custom logging code, currently the non-verbose logging falls out of line.