PS: I assume one cannot already disable it, because RTFS indicates so
and I found no contradictory documentation:
static int
virLogFormatString(char **msg,
const char *funcname,
long long linenr,
struct tm *time_info,
struct timeval *cur_time,
int priority,
const char *str)
{
int ret;
/*
* Be careful when changing the following log message formatting, we
rely
* on it when stripping libvirt debug messages from qemu log files. So
when
* changing this, you might also need to change the code there.
* virLogFormatString() function name is mentioned there so it's
sufficient
* to just grep for it to find the right place.
*/
if ((funcname != NULL)) {
ret = virAsprintf(msg, "%02d:%02d:%02d.%03d: %d: %s : %s:%lld :
%s\n",
time_info->tm_hour, time_info->tm_min,
time_info->tm_sec, (int) cur_time->tv_usec / 1000,
virThreadSelfID(),
virLogPriorityString(priority), funcname, linenr,
str);
} else {
ret = virAsprintf(msg, "%02d:%02d:%02d.%03d: %d: %s : %s\n",
time_info->tm_hour, time_info->tm_min,
time_info->tm_sec, (int) cur_time->tv_usec / 1000,
virThreadSelfID(),
virLogPriorityString(priority), str);
}
return ret;
}
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]