now outputs errors to stderr

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-05-13 22:09:53 +00:00
parent 82ca6dbcf4
commit cb0b3950ff
2 changed files with 12 additions and 0 deletions

View 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);

View 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);