From acd26c4c488a073d2b17e8f2019c2baad26de19c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 26 Jul 2011 19:52:07 +0000 Subject: [PATCH] Fiddle with the log output format so that Visual Studio's parser reads it correctly Originally committed to SVN as r5503. --- aegisub/libaegisub/windows/log_win.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/libaegisub/windows/log_win.cpp b/aegisub/libaegisub/windows/log_win.cpp index 6a321b9ff..e11a2f60f 100644 --- a/aegisub/libaegisub/windows/log_win.cpp +++ b/aegisub/libaegisub/windows/log_win.cpp @@ -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);