X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/acad886cb4119e4077783b063d85e74cbe266106..62960a2c6e9c54720126a7207fa47e9e539f6040:/interface/wx/log.h diff --git a/interface/wx/log.h b/interface/wx/log.h index d23af95b51..9a7973ecac 100644 --- a/interface/wx/log.h +++ b/interface/wx/log.h @@ -744,7 +744,8 @@ public: /** Globally enable or disable logging. - Calling this function with @false argument disables all log messages. + Calling this function with @false argument disables all log messages + for the current thread. @see wxLogNull, IsEnabled() @@ -845,7 +846,7 @@ public: static bool IsEnabled(); /** - Returns true if logging at this level is enabled. + Returns true if logging at this level is enabled for the current thread. This function only returns @true if logging is globally enabled and if @a level is less than or equal to the maximal log level enabled for the @@ -1395,3 +1396,24 @@ void wxLogSysError(const char* formatString, ... ); void wxVLogSysError(const char* formatString, va_list argPtr); //@} +/** @addtogroup group_funcmacro_debug */ +//@{ + +/** + @def wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD() + + Use this macro to disable logging at debug and trace levels in release + build when not using IMPLEMENT_APP(). + + @see wxDISABLE_DEBUG_SUPPORT(), + wxDISABLE_ASSERTS_IN_RELEASE_BUILD(), + @ref overview_debugging + + @since 2.9.1 + + @header{wx/log.h} + */ +#define wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD() + +//@} +