somehow log target wasn't being created automatically anymore. Restored.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -69,7 +69,13 @@ public:
|
|||||||
|
|
||||||
// sink function
|
// sink function
|
||||||
static void OnLog(wxLogLevel level, const char *szString)
|
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
|
// message buffering
|
||||||
// flush shows all messages if they're not logged immediately
|
// flush shows all messages if they're not logged immediately
|
||||||
|
Reference in New Issue
Block a user