Specifying the logging level of the libvirt log messages

Specify the level of logging information that is displayed in the libvirt log messages file.

About this task

For further information, see: libvirt.org/logging.html

Procedure

  1. In the libvirt configuration file /etc/libvirt/libvirtd.conf, specify:
    log_level = <n>
    Where <n> is the logging level:
    4
    Displays errors.
    3
    Is the default logging level, which logs errors and warnings.
    2
    Provides more information than logging level 3.
    1
    Is the most verbose logging level.
  2. Restart the libvirt daemon to enable the changes.
    # systemctl restart libvirtd.service