Re: logging: how about adding a ProcessName field in logging file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]