[libvirt] logging: how about adding a ProcessName field in logging file?
zhang bo
oscar.zhangbo at huawei.com
Fri Mar 13 09:50:52 UTC 2015
On 2015/3/13 17:29, Daniel P. Berrange wrote:
> On Fri, Mar 13, 2015 at 05:08:54PM +0800, zhang bo wrote:
>> Suppose there are 3 or more clients of libvirt:
>> 1)nova
>> 2)bash virsh commands
>> 3)user customized ELF
>> 4)etc....
>>
>> The env LIBVIRT_DEBUG and LIBVIRT_LOG_OUTPUTS affects all of these clients, thus, they will all
>> accumulate the logs into *ONE* file set by LIBVIRT_LOG_OUTPUTS.
>
> There is no attempt to make sure that separate clients logging to
> the same file will atomically write log lines. You could get half
> a line of text from one client, then half a line of text from a
> second client, then the rest of the line from the first client
> all mangled up. You simply shouldn't give each client process the
> same logging output file.
>
> Regards,
> Daniel
Got it, thank you for your immediate reply :)
More information about the libvir-list
mailing list