From: Eric Blake Date: Wed, 22 Sep 2010 21:34:17 +0000 (-0600) Subject: docs: grammar cleanups on logging examples X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=50f6b66b181024e9d725599400e4822f356bfb81;p=libvirt.git docs: grammar cleanups on logging examples * docs/logging.html.in: Fix spelling and grammar. --- diff --git a/docs/logging.html.in b/docs/logging.html.in index f4a5878089..dc1f107ee0 100644 --- a/docs/logging.html.in +++ b/docs/logging.html.in @@ -4,33 +4,33 @@

Logging in the library and the daemon

Libvirt includes logging facilities starting from version 0.6.0, this complements the error handling - mechanism and APIs to allow tracing though the execution of the + mechanism and APIs to allow tracing through the execution of the library as well as in the libvirtd daemon.

The logging functionalities in libvirt are based on 3 key concepts, similar to the one present in other generic logging facilities like log4j:

-

The library configuration of logging is though 3 environment variables +

The library configuration of logging is through 3 environment variables allowing to control the logging behaviour:

-
  • LIBVIRT_LOG_FILTERS: allow to define logging filters
  • -
  • LIBVIRT_LOG_OUTPUTS: allow to define logging outputs
  • +
  • LIBVIRT_LOG_FILTERS: defines logging filters
  • +
  • LIBVIRT_LOG_OUTPUTS: defines logging outputs
  • Note that, for example, setting LIBVIRT_DEBUG= is the same as unset. If you specify an invalid value, it will be ignored with a warning. If you have an error in a filter or output string, some of the settings may be applied up to the point at which libvirt encountered the error.

    -

    Similary the daemon logging behaviour can be tuned using 3 config +

    Similarly the daemon logging behaviour can be tuned using 3 config variables, stored in the configuration file:

    -
  • log_filters: allow to define logging filters
  • -
  • log_outputs: allow to define logging outputs
  • +
  • log_filters: defines logging filters
  • +
  • log_outputs: defines logging outputs
  • When starting the libvirt daemon, any logging environment variable settings will override settings in the config file. Command line options @@ -106,7 +106,7 @@

  • 3: WARNING
  • 4: ERROR
  • -

    Multiple output can be defined , they just need to be separated by +

    Multiple output can be defined, they just need to be separated by spaces, e.g.: "3:syslog:libvirtd 1:file:/tmp/libvirt.log" will log all warnings and errors to syslog under the libvirtd ident but also log everything debugging and informations included in the