- if (g_bRunningWXWindows)
- wxLog::OnLog (wxLOG_Message, strOutput.c_str(), time(NULL));
+ if (g_bRunningWXWindows) {
+ if (theApp)
+ *theApp->getLog() << strOutput.c_str() << "\n";
+ else
+ wxLog::OnLog (wxLOG_Message, strOutput.c_str(), time(NULL));
+ }