added wxLogBuffer which collects all log messages in a string buffer

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-06-06 23:35:40 +00:00
parent e12a951e75
commit d3fc175515
2 changed files with 40 additions and 2 deletions

View File

@@ -522,6 +522,22 @@ void wxLog::Flush()
return false;
}
// ----------------------------------------------------------------------------
// wxLogBuffer implementation
// ----------------------------------------------------------------------------
void wxLogBuffer::Flush()
{
wxMessageOutputBest out;
out.Printf(_T("%s"), m_str.c_str());
m_str.clear();
}
void wxLogBuffer::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
{
m_str << szString << _T("\n");
}
// ----------------------------------------------------------------------------
// wxLogStderr class implementation
// ----------------------------------------------------------------------------