Fiddle with the log output format so that Visual Studio's parser reads it correctly

Originally committed to SVN as r5503.
This commit is contained in:
Thomas Goyne 2011-07-26 19:52:07 +00:00
parent 87abcddd87
commit acd26c4c48

View file

@ -39,16 +39,16 @@ void EmitSTDOUT::log(SinkMessage *sm) {
localtime_s(&tmtime, &time); localtime_s(&tmtime, &time);
char buff[1024]; char buff[1024];
_snprintf_s(buff, _TRUNCATE, "%c %02d:%02d:%02d %-6ld <%-25s> [%s:%s:%d] %.*s\n", _snprintf_s(buff, _TRUNCATE, "%s (%d): %c %02d:%02d:%02d %-6ld <%-25s> [%s] %.*s\n",
sm->file,
sm->line,
Severity_ID[sm->severity], Severity_ID[sm->severity],
tmtime.tm_hour, tmtime.tm_hour,
tmtime.tm_min, tmtime.tm_min,
tmtime.tm_sec, tmtime.tm_sec,
sm->tv.tv_usec, sm->tv.tv_usec,
sm->section, sm->section,
sm->file,
sm->func, sm->func,
sm->line,
sm->len, sm->len,
sm->message); sm->message);
OutputDebugStringA(buff); OutputDebugStringA(buff);