basic setup for logging functional tests

Depends on aspnet/Logging#81
copy and restore stream in a try/finally