Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (32 sloc)
632 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wx includes | |
#include "wx/log.h" | |
// Statsgen Includes | |
#include "StatsgenLog.h" | |
#include "Progress.h" | |
void StatsgenLog::DoLog(wxLogLevel level, | |
const char *msg, | |
time_t timestamp) | |
{ | |
int newSeverity; | |
wxString messageString; | |
switch (level) | |
{ | |
case wxLOG_FatalError: | |
case wxLOG_Error: | |
newSeverity=SeverityError; | |
break; | |
case wxLOG_Message: | |
case wxLOG_Status: | |
case wxLOG_Info: | |
newSeverity=SeverityOK; | |
break; | |
case wxLOG_Warning: | |
newSeverity=SeverityCaution; | |
break; | |
default: | |
newSeverity=SeverityCaution; | |
break; | |
} | |
messageString=msg; | |
progress->LogError(messageString,newSeverity); | |
} | |