When debugging a plugin, I like to wirte to a log as follows:
wxWindow* pcbWindow = Manager::Get()->GetAppWindow();
m_pMS_Window = pcbWindow;
#if LOGGING
/*wxLogWindow**/ pMyLog = new wxLogWindow(pcbWindow, wxT("DragScroll"), true, false);
wxLog::SetActiveTarget(pMyLog);
pMyLog->Flush();
pMyLog->GetFrame()->Move(20,20);
wxLogMessage(_T("Logging cbDragScroll version %s"),wxString(wxT(VERSION)).c_str());
#endif
All of sudden, no writes to the logs work.
How can I re-instate my debugging log?