-
-// if (g_bRunningWXWindows)
-// theApp->getLog() << strOutput.c_str();
-// else
- std::cout << strOutput;
+
+#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 << "\n";