]> git.saurik.com Git - wxWidgets.git/commitdiff
Create non-GUI log target until GUI logging is available, allows stderr messages...
authorKevin Hock <hockkn@yahoo.com>
Mon, 24 Jan 2005 14:45:46 +0000 (14:45 +0000)
committerKevin Hock <hockkn@yahoo.com>
Mon, 24 Jan 2005 14:45:46 +0000 (14:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/init.cpp

index 8e4cba57e0021dbc48e84fa7651bc9c6cdbbd478..c0ce4e9bcb4f7cd51fa945b226e2dd645c1eaded 100644 (file)
@@ -376,6 +376,12 @@ void wxEntryCleanup()
 
 int wxEntryReal(int& argc, wxChar **argv)
 {
+#if wxUSE_LOG
+    // Create a non-GUI log target, to be used until GUI (if any) is ready.
+    // Target will be reset by wxAppConsole::Initialize, when GUI logging will work.
+    wxLog::GetActiveTarget();
+#endif
+
     // library initialization
     if ( !wxEntryStart(argc, argv) )
     {