Left align microseconds by 6 spaces.

Originally committed to SVN as r4683.
This commit is contained in:
Amar Takhar 2010-07-17 17:47:59 +00:00
parent 5755d7e1a0
commit c624b20777
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ void EmitSTDOUT::log(SinkMessage *sm) {
// tmtime.tm_mon, // tmtime.tm_mon,
// tmtime.tm_mday, // tmtime.tm_mday,
printf("%c %02d:%02d:%02d %ld <%-25s> [%s:%s:%d] %.*s\n", printf("%c %02d:%02d:%02d %-6ld <%-25s> [%s:%s:%d] %.*s\n",
Severity_ID[sm->severity], Severity_ID[sm->severity],
tmtime.tm_hour, tmtime.tm_hour,
tmtime.tm_min, tmtime.tm_min,

View File

@ -39,7 +39,7 @@ 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 %ld <%-25s> [%s:%s:%d] %.*s\n", _snprintf_s(buff, _TRUNCATE, "%c %02d:%02d:%02d %-6ld <%-25s> [%s:%s:%d] %.*s\n",
Severity_ID[sm->severity], Severity_ID[sm->severity],
tmtime.tm_hour, tmtime.tm_hour,
tmtime.tm_min, tmtime.tm_min,

View File

@ -100,7 +100,7 @@ void LogWindow::EmitLog::Write(agi::log::SinkMessage *sm) {
#ifndef _WIN32 #ifndef _WIN32
tm tmtime; tm tmtime;
localtime_r(&sm->tv.tv_sec, &tmtime); localtime_r(&sm->tv.tv_sec, &tmtime);
wxString log = wxString::Format("%c %02d:%02d:%02d %ld <%-25s> [%s:%s:%d] %s\n", wxString log = wxString::Format("%c %02d:%02d:%02d %-6ld <%-25s> [%s:%s:%d] %s\n",
agi::log::Severity_ID[sm->severity], agi::log::Severity_ID[sm->severity],
tmtime.tm_hour, tmtime.tm_hour,
tmtime.tm_min, tmtime.tm_min,
@ -112,7 +112,7 @@ void LogWindow::EmitLog::Write(agi::log::SinkMessage *sm) {
sm->line, sm->line,
strndup(sm->message, sm->len)); strndup(sm->message, sm->len));
#else #else
wxString log = wxString::Format("%c %ld <%-25s> [%s:%s:%d] %s\n", wxString log = wxString::Format("%c %-6ld <%-25s> [%s:%s:%d] %s\n",
agi::log::Severity_ID[sm->severity], agi::log::Severity_ID[sm->severity],
sm->tv.tv_usec, sm->tv.tv_usec,
sm->section, sm->section,