'Read out recorded S3Log messages'

def read(self):

    strbuf = self.strbuf
    if (strbuf is None):
        return ''
    handler = self.handler
    if (handler is not None):
        handler.flush()
    return strbuf.getvalue()
