+
+ %property(OldLog, GetOldLog, doc="See `GetOldLog`");
+};
+
+// log everything to a buffer
+class wxLogBuffer : public wxLog
+{
+public:
+ wxLogBuffer();
+
+ // get the string contents with all messages logged
+ const wxString& GetBuffer() const;
+
+ // show the buffer contents to the user in the best possible way (this uses
+ // wxMessageOutputMessageBox) and clear it
+ virtual void Flush();
+
+ %property(Buffer, GetBuffer, doc="See `GetBuffer`");