[libvirt] logging: how about adding a ProcessName field in logging file?
Daniel P. Berrange
berrange at redhat.com
Fri Mar 13 09:29:55 UTC 2015
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
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list