News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

All plugin debug log write have disappeared.

Started by Pecan, July 10, 2007, 06:28:22 PM

Previous topic - Next topic

Pecan

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?