wxPython changes for Get/SetLogLevel

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-01 05:18:17 +00:00
parent 1077f448d5
commit 4e60199541
2 changed files with 8 additions and 1 deletions

View File

@@ -631,6 +631,10 @@ public:
static unsigned long GetTraceMask(); static unsigned long GetTraceMask();
static bool IsAllowedTraceMask(const wxString& mask); static bool IsAllowedTraceMask(const wxString& mask);
static void SetLogLevel(unsigned long logLevel);
static unsigned long GetLogLevel();
// static void TimeStamp(wxString *str); // static void TimeStamp(wxString *str);
%addmethods { %addmethods {
wxString TimeStamp() { wxString TimeStamp() {
@@ -697,6 +701,7 @@ void wxLogError(const wxString& msg);
void wxLogWarning(const wxString& msg); void wxLogWarning(const wxString& msg);
void wxLogMessage(const wxString& msg); void wxLogMessage(const wxString& msg);
void wxLogInfo(const wxString& msg); void wxLogInfo(const wxString& msg);
void wxLogDebug(const wxString& msg);
void wxLogVerbose(const wxString& msg); void wxLogVerbose(const wxString& msg);
void wxLogStatus(const wxString& msg); void wxLogStatus(const wxString& msg);
%name(wxLogStatusFrame)void wxLogStatus(wxFrame *pFrame, const wxString& msg); %name(wxLogStatusFrame)void wxLogStatus(wxFrame *pFrame, const wxString& msg);

View File

@@ -43,13 +43,15 @@ def main(args=sys.argv):
from wxPython.wx import wxPySimpleApp, wxConfigBase_Get, \ from wxPython.wx import wxPySimpleApp, wxConfigBase_Get, \
wxLog_SetActiveTarget, wxLogStderr, \ wxLog_SetActiveTarget, wxLogStderr, \
wxLog_SetLogLevel, wxLOG_Error, \
wxFileSystem_AddHandler, wxZipFSHandler wxFileSystem_AddHandler, wxZipFSHandler
import wxPython.html import wxPython.html
from wxPython.htmlhelp import wxHtmlHelpController from wxPython.htmlhelp import wxHtmlHelpController
app = wxPySimpleApp() 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 # Set up the default config so the htmlhelp frame can save its preferences
app.SetVendorName('wxWindows') app.SetVendorName('wxWindows')