- use wxLog::AddTraceMask(MY_MASK) to turn on trace
- do not use wxLogGui, wxLogWindow or wxLogWindow, wxLogTrace is not working with it.
You can make a chain consisting of wxLogGui and some other target using wxLogChain. All messages besides wxLogTrace will go to wxLogGui, and all messages including wxLogTrace will go to other target (wxLogStderr for example).
Under windows some people use wxLogStderr to log to file and use the 'baretail' utility to read this file in real time.
- Official docs: wxLogTrace