Add the ability to clear the logs of the *Log rules.

This helps you if your test writes to the error/output stream
multiple times and you only want to test what's written by a single
call to your object under test.