National date/time representation in syslog logfiles looks ugly,
change strftime to ctime. Logfiles must have default (english) date/time representation for access/view from various places.
This commit is contained in:
parent
9bc3325936
commit
44816c13e1
@ -121,8 +121,7 @@ vsyslog(pri, fmt, ap)
|
||||
/* Build the message. */
|
||||
(void)time(&now);
|
||||
p = tbuf + sprintf(tbuf, "<%d>", pri);
|
||||
p += strftime(p, sizeof (tbuf) - (p - tbuf), "%h %e %T ",
|
||||
localtime(&now));
|
||||
p += sprintf(p, "%.15s ", ctime(&now) + 4);
|
||||
if (LogStat & LOG_PERROR)
|
||||
stdp = p;
|
||||
if (LogTag == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user