git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34690
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual void Flush();
protected:
virtual void Flush();
protected:
+ virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t);
virtual void DoLogString(const wxChar *szString, time_t t);
private:
virtual void DoLogString(const wxChar *szString, time_t t);
private:
+void wxLogBuffer::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
+{
+ switch ( level )
+ {
+ case wxLOG_Trace:
+ case wxLOG_Debug:
+#ifdef __WXDEBUG__
+ // don't put debug messages in the buffer, we don't want to show
+ // them to the user in a msg box, log them immediately
+ {
+ wxString str;
+ TimeStamp(&str);
+ str += szString;
+
+ wxMessageOutputDebug().Printf(_T("%s\n"), str.c_str());
+ }
+#endif // __WXDEBUG__
+ break;
+
+ default:
+ wxLog::DoLog(level, szString, t);
+ }
+}
+
void wxLogBuffer::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
{
m_str << szString << _T("\n");
void wxLogBuffer::DoLogString(const wxChar *szString, time_t WXUNUSED(t))
{
m_str << szString << _T("\n");