added wxLog::IsLevelEnabled() helper; document it and a few related functions which were not, or poorly, documented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -164,9 +164,13 @@ public:
|
||||
|
||||
// these functions allow to completely disable all log messages
|
||||
|
||||
// is logging disabled now?
|
||||
// is logging enabled at all now?
|
||||
static bool IsEnabled() { return ms_doLog; }
|
||||
|
||||
// is logging at this level enabled?
|
||||
static bool IsLevelEnabled(wxLogLevel level)
|
||||
{ return IsEnabled() && level <= ms_logLevel; }
|
||||
|
||||
// change the flag state, return the previous one
|
||||
static bool EnableLogging(bool doIt = true)
|
||||
{ bool doLogOld = ms_doLog; ms_doLog = doIt; return doLogOld; }
|
||||
|
Reference in New Issue
Block a user