add public wxLog::Log() to avoid ugly casts needed in order to call DoLog() from derived classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-02-22 00:46:25 +00:00
parent cf92f48759
commit efce878a2a
4 changed files with 43 additions and 11 deletions

View File

@@ -243,6 +243,14 @@ public:
// change it otherwise)
static void TimeStamp(wxString *str);
// this method should only be called from derived classes DoLog()
// implementations and shouldn't be called directly, use logging functions
// instead
void Log(wxLogLevel level, const wxString& msg, time_t t)
{
DoLog(level, msg, t);
}
// make dtor virtual for all derived classes
virtual ~wxLog();
@@ -256,7 +264,7 @@ public:
#endif
protected:
// the logging functions that can be overriden
// the logging functions that can be overridden
// default DoLog() prepends the time stamp and a prefix corresponding
// to the message to szString and then passes it to DoLogString()