Author Topic: All plugin debug log write have disappeared.  (Read 5051 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
All plugin debug log write have disappeared.
« on: July 10, 2007, 06:28:22 pm »
When debugging a plugin, I like to wirte to a log as follows:

Code
    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?