[libvirt] [RFC Patch 0/3]virsh: Enable env support for virsh logging
Eric Blake
eblake at redhat.com
Thu May 19 18:19:11 UTC 2011
On 05/09/2011 01:07 AM, Supriya Kannery wrote:
> Defining environment variables for debug log-level and log-file will avoid
> specifying the same in each virsh command. Following is a patchset
> for enabling env variable support for virsh logging.
>
> Two new environment variables are defined:
>
> a. VIRSH_DEBUG=<log_level>
> log_level can be a value between 0 - 4, where
> 0 -> "ERROR"
> 1 -> "WARNING"
> 2 -> "NOTICE"
> 3 -> "INFO"
> 4 -> "DEBUG"
>
> b. VIRSH_LOG_FILE=<logfile-path-and-name>
> logfile-path-and-name is the name and complete path for the log file.
>
> The above two variables are independent.
> if log_level is specified without setting a log file name,
> then, logs will be displayed in stdio.
> If logfile-path-and-name specified without setting log_level,
> then, default log_level (DEBUG) will be used to log to the specified file.
Seems reasonable to me. I'm now in the middle of reviewing the patch set.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110519/17cc039b/attachment-0001.sig>
More information about the libvir-list
mailing list