]> git.saurik.com Git - wxWidgets.git/commitdiff
now outputs errors to stderr
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 13 May 2001 22:09:53 +0000 (22:09 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 13 May 2001 22:09:53 +0000 (22:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/utils/wxrc/wxrc.cpp
utils/wxrc/wxrc.cpp

index f36768d150afa42b8e7fd9d34bac03c64c2095a0..79d7540fc356ef193df2e640600b014cf7cd8dc8 100644 (file)
@@ -98,6 +98,12 @@ int XmlResApp::OnRun()
         { wxCMD_LINE_NONE }
     };
 
+#if wxUSE_GUI
+    // VS: I need reasonable output to console from wxCmdLineParser
+    wxLog::SetTimestamp(NULL);
+    delete wxLog::SetActiveTarget(new wxLogStderr);
+#endif
+
     wxXmlDocument::AddHandler(new wxXmlIOHandlerBinZ);
 
     wxCmdLineParser parser(cmdLineDesc, argc, argv);
index f36768d150afa42b8e7fd9d34bac03c64c2095a0..79d7540fc356ef193df2e640600b014cf7cd8dc8 100644 (file)
@@ -98,6 +98,12 @@ int XmlResApp::OnRun()
         { wxCMD_LINE_NONE }
     };
 
+#if wxUSE_GUI
+    // VS: I need reasonable output to console from wxCmdLineParser
+    wxLog::SetTimestamp(NULL);
+    delete wxLog::SetActiveTarget(new wxLogStderr);
+#endif
+
     wxXmlDocument::AddHandler(new wxXmlIOHandlerBinZ);
 
     wxCmdLineParser parser(cmdLineDesc, argc, argv);