Fix no log issue under openwrt

This commit is contained in:
Shawn Chain 2018-11-09 17:18:11 +08:00
parent dc1f555ceb
commit f8947805a3
2 changed files with 5 additions and 0 deletions

View file

@ -132,3 +132,6 @@ void CLogger::DoLogString(const wxChar* msg, time_t timestamp)
m_file->Flush();
}
void CLogger::DoLogRecord(wxLogLevel level, const wxString& msg, const wxLogRecordInfo& info) {
DoLog(level, msg.c_str(), info.timestamp);
}

View file

@ -31,6 +31,8 @@ public:
virtual void DoLog(wxLogLevel level, const wxChar* msg, time_t timestamp);
virtual void DoLogString(const wxChar* msg, time_t timestamp);
virtual void DoLogRecord(wxLogLevel level, const wxString& msg, const wxLogRecordInfo& info);
private:
wxString m_name;
wxFFile* m_file;