Move test_logging over to doctest.

Thanks to Christopher White from GHOP.
4 files changed