]> xenbits.xensource.com Git - libvirt.git/commitdiff
Document the new daemon options
authorDaniel Veillard <veillard@redhat.com>
Mon, 22 Dec 2008 12:57:35 +0000 (12:57 +0000)
committerDaniel Veillard <veillard@redhat.com>
Mon, 22 Dec 2008 12:57:35 +0000 (12:57 +0000)
* qemud/libvirtd.aug qemud/libvirtd.conf: document the new
  options in the config file and augment the Augeas description
daniel

ChangeLog
qemud/libvirtd.aug
qemud/libvirtd.conf

index 0680501adbc05d4dfcba79f7b6c65940b7ea5668..cbca827dc450b0c92546d13c810d121f87819965 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Dec 22 13:56:13 CET 2008 Daniel Veillard <veillard@redhat.com>
+
+       * qemud/libvirtd.aug qemud/libvirtd.conf: document the new
+         options in the config file and augment the Augeas description
+
 Mon Dec 22 13:54:30 CET 2008 Daniel Veillard <veillard@redhat.com>
 
        * qemud/event.c qemud/mdns.c qemud/remote.c: switch other pieces
index fdb25072ac1aca1e8b4032bbafe51553cb6c4a05..7cfd458efb5787195037a1838854704f9b3be5ac 100644 (file)
@@ -54,6 +54,10 @@ module Libvirtd =
                         | int_entry "max_workers"
                         | int_entry "max_clients"
 
+   let logging_entry = int_entry "log_level"
+                     | str_entry "log_filters"
+                     | str_entry "log_outputs"
+
    (* Each enty in the config is one of the following three ... *)
    let entry = network_entry
              | sock_acl_entry
@@ -61,6 +65,7 @@ module Libvirtd =
              | certificate_entry
              | authorization_entry
              | processing_entry
+             | logging_entry
    let comment = [ label "#comment" . del /#[ \t]*/ "# " .  store /([^ \t\n][^\n]*)?/ . del /\n/ "\n" ]
    let empty = [ label "#empty" . eol ]
 
index cd82e8bc4d1510ed543c737616b66eec454b7eef..ecb28dcdf3e519a9930f24112aa87318d1f8af80 100644 (file)
 #min_workers = 5
 #max_workers = 20
 
+#################################################################
+#
+# Logging controls
+#
+
+# Logging level: 0 none, 4 errors, 3 warnings, 2 informations, 1 debug
+# basically 1 will log everything possible
+#log_level = 3
+
+# Logging filters:
+# A filter allows to select a different logging level for a given category
+# of logs
+# The format for a filter is:
+#    x:name
+#      where name is a match string e.g. remote or qemu
+# the x prefix is the minimal level where matching messages should be logged
+#    1: DEBUG
+#    2: INFO
+#    3: WARNING
+#    4: ERROR
+#
+# Multiple filter can be defined in a single @filters, they just need to be
+# separated by spaces.
+#
+# e.g:
+# log_filters="3:remote 4:event"
+# to only get warning or errors from the remote layer and only errors from
+# the event layer.
+
+# Logging outputs:
+# An output is one of the places to save logging informations
+# The format for an output can be:
+#    x:stderr
+#      output goes to stderr
+#    x:syslog:name
+#      use syslog for the output and use the given name as the ident
+#    x:file:file_path
+#      output to a file, with the given filepath
+# In all case the x prefix is the minimal level, acting as a filter
+#    0: everything
+#    1: DEBUG
+#    2: INFO
+#    3: WARNING
+#    4: ERROR
+#
+# Multiple output can be defined , they just need to be separated by spaces.
+# e.g.:
+# log_outputs="3:syslog:libvirtd"
+# to log all warnings and errors to syslog under the libvirtd ident