diff --git a/wxPython/src/misc2.i b/wxPython/src/misc2.i index 458ffcc82d..0538f510e1 100644 --- a/wxPython/src/misc2.i +++ b/wxPython/src/misc2.i @@ -631,6 +631,10 @@ public: static unsigned long GetTraceMask(); static bool IsAllowedTraceMask(const wxString& mask); + static void SetLogLevel(unsigned long logLevel); + static unsigned long GetLogLevel(); + + // static void TimeStamp(wxString *str); %addmethods { wxString TimeStamp() { @@ -697,6 +701,7 @@ void wxLogError(const wxString& msg); void wxLogWarning(const wxString& msg); void wxLogMessage(const wxString& msg); void wxLogInfo(const wxString& msg); +void wxLogDebug(const wxString& msg); void wxLogVerbose(const wxString& msg); void wxLogStatus(const wxString& msg); %name(wxLogStatusFrame)void wxLogStatus(wxFrame *pFrame, const wxString& msg); diff --git a/wxPython/wxPython/tools/helpviewer.py b/wxPython/wxPython/tools/helpviewer.py index 16f5a37d1b..0d35e5ae3a 100644 --- a/wxPython/wxPython/tools/helpviewer.py +++ b/wxPython/wxPython/tools/helpviewer.py @@ -43,13 +43,15 @@ def main(args=sys.argv): from wxPython.wx import wxPySimpleApp, wxConfigBase_Get, \ wxLog_SetActiveTarget, wxLogStderr, \ + wxLog_SetLogLevel, wxLOG_Error, \ wxFileSystem_AddHandler, wxZipFSHandler import wxPython.html from wxPython.htmlhelp import wxHtmlHelpController app = wxPySimpleApp() - wxLog_SetActiveTarget(wxLogStderr()) + #wxLog_SetActiveTarget(wxLogStderr()) + wxLog_SetLogLevel(wxLOG_Error) # Set up the default config so the htmlhelp frame can save its preferences app.SetVendorName('wxWindows')