Implement wxVLogTrace() accidentally removed by recent changes.

Also change the unit test to test wxVLogTrace() as well as wxLogTrace.

Closes #11011.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-07-23 13:40:44 +00:00
parent 2839804c35
commit 89d62794e4
2 changed files with 36 additions and 3 deletions

View File

@@ -901,6 +901,16 @@ public:
LogV(format, argptr);
}
void LogVTrace(const wxString& mask, const wxString& format, va_list argptr)
{
if ( !wxLog::IsAllowedTraceMask(mask) )
return;
Store(wxLOG_KEY_TRACE_MASK, mask);
LogV(format, argptr);
}
// vararg functions used by wxLogXXX():
@@ -1488,6 +1498,11 @@ public:
{} \
else \
wxMAKE_LOGGER(Trace).LogTrace
#define wxVLogTrace \
if ( !wxLog::IsLevelEnabled(wxLOG_Trace, wxLOG_COMPONENT) ) \
{} \
else \
wxMAKE_LOGGER(Trace).LogVTrace
#else // !wxUSE_LOG_TRACE
#define wxVLogTrace(mask, fmt, valist) wxLogNop()