StringLogSink is very similar to the StreamLogSink, but the encapsulation of the ostringstream in the Sink allows much easier export to Python