Assert on warning message.
Support redirecting output to a log file.
Add log file redirection for stderr.
Add log file test fixture.
Assert on log file output and expose open().
Assert on exporting open().