]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/log.h
*** empty log message ***
[wxWidgets.git] / include / wx / log.h
index 842f1ad48789252b2e59136defd69e37fe0c7174..dfe94e16aca6a2ffde3155a399e9a0980070241d 100644 (file)
@@ -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();