]> xenbits.xensource.com Git - libvirt.git/commit
conf: allow use of a logfile with chardev backends
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 11 Dec 2015 16:58:13 +0000 (16:58 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Mar 2016 15:33:17 +0000 (15:33 +0000)
commit00ce10c700993e054532baca28d0c0d2b22c5571
tree80d39ad03d70d929a410ff03bfc742524dbed1d7
parentf12bfc5ed59178360b926276cef96b666497603b
conf: allow use of a logfile with chardev backends

Extend the chardev source XML so that there is a new optional
<log/> element, which is applicable to all character device
backend types. For example, to log output of a TCP backed
serial port

    <serial type='tcp'>
      <source mode='connect' host='127.0.0.1' service='9999'/>
      <protocol type='raw'/>
      <log file='/var/log/libvirt/qemu/demo-serial0.log' append='on'/>
      <target port='0'/>
    </serial>

Not all hypervisors will support use of logfiles.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h