set custom loglevel for external libraries

Olaf Hering olaf at aepfle.de
Mon Oct 11 20:38:11 UTC 2021


Am Mon, 11 Oct 2021 13:25:20 -0600
schrieb Jim Fehlig <jfehlig at suse.com>:

> >> I think it is wrong to use internal libvirt values for internal libxentoollog values.  
> What is gained over the sparse mapping? Are values not covered actually useful 
> in practice? Also, how are the values specified when using the xl tool? A quick 
> peek at the code seems to imply using more 'v' options. E.g. 'xl -vvvv ...'.

Since libvirt has no control about what libxentoollog values the authors
use, it should provide a simple way to request a specific loglevel.
xl decided to use the number of v's for it.

> If such a setting is actually needed, then the proper place would be 
> /etc/libvirt/libxl.conf. And IMO we should avoid creating a new name that could 
> potentially confuse users. If 'xentoollog_level' is the common jargon in xen, we 
> should stick with the same name.

If that is an acceptable approach I will try to prepare a patch.


Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211011/1458eb6f/attachment-0001.sig>


More information about the libvir-list mailing list