git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@764
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// sink function
static void OnLog(wxLogLevel level, const char *szString)
// sink function
static void OnLog(wxLogLevel level, const char *szString)
- { if ( ms_pLogger != 0 ) ms_pLogger->DoLog(level, szString); }
+ {
+ wxLog *pLogger = GetActiveTarget();
+ if ( pLogger )
+ {
+ pLogger->DoLog(level, szString);
+ }
+ }
// message buffering
// flush shows all messages if they're not logged immediately
// message buffering
// flush shows all messages if they're not logged immediately