Fix the stdout print to make it more readable..

Originally committed to SVN as r4376.
This commit is contained in:
Amar Takhar 2010-05-31 23:16:16 +00:00
parent f7993ce3ac
commit 3ff3fdf4cc

View file

@ -87,11 +87,12 @@ void EmitSTDOUT::log(SinkMessage *sm) {
tm tmtime; tm tmtime;
localtime_r(&sm->tv.tv_sec, &tmtime); localtime_r(&sm->tv.tv_sec, &tmtime);
printf("%c %d-%02d-%02d %02d:%02d:%02d %ld %s %s %s:%d %s\n", // tmtime.tm_year+1900,
// tmtime.tm_mon,
// tmtime.tm_mday,
printf("%c %02d:%02d:%02d %ld <%-25s> [%s:%s:%d] %s\n",
Severity_ID[sm->severity], Severity_ID[sm->severity],
tmtime.tm_year+1900,
tmtime.tm_mon,
tmtime.tm_mday,
tmtime.tm_hour, tmtime.tm_hour,
tmtime.tm_min, tmtime.tm_min,
tmtime.tm_sec, tmtime.tm_sec,