- \r
-// if (g_bRunningWXWindows)\r
-// theApp->getLog() << strOutput.c_str();\r
-// else\r
- std::cout << strOutput;\r
+
+#ifdef HAVE_WXWINDOWS
+ if (g_bRunningWXWindows) {
+ if (theApp)
+ *theApp->getLog() << strOutput.c_str() << "\n";
+ else
+ wxLog::OnLog (wxLOG_Message, strOutput.c_str(), time(NULL));
+ }
+ else
+#endif
+ std::cout << strOutput;