X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e90c1d2a19361551eb07778280f22be3e759cf64..0371a6914315f283371985bb751fb37504dd63d8:/include/wx/log.h diff --git a/include/wx/log.h b/include/wx/log.h index 842f1ad487..dfe94e16ac 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -132,6 +132,13 @@ public: bool HasPendingMessages() const { return m_bHasMessages; } // only one sink is active at each moment + // flush the active target if any + static void FlushActive() + { + wxLog *log = GetActiveTarget(); + if ( log ) + log->Flush(); + } // get current log target, will call wxApp::CreateLogTarget() to // create one if none exists static wxLog *GetActiveTarget();