'Create a logging object we can use to test with.
@return: a stdlib-style logger
@rtype: L{StdlibLoggingContainer}'

def py_logger(self):

    logger = StdlibLoggingContainer()
    self.addCleanup(logger.close)
    return logger
