[test_logging] rewrite TestSetupDebugLogging