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
1 changed files with 3 additions and 3 deletions

View File

@ -39,16 +39,16 @@ void EmitSTDOUT::log(SinkMessage *sm) {
localtime_s(&tmtime, &time);
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],
tmtime.tm_hour,
tmtime.tm_min,
tmtime.tm_sec,
sm->tv.tv_usec,
sm->section,
sm->file,
sm->func,
sm->line,
sm->len,
sm->message);
OutputDebugStringA(buff);