[libvirt] [PATCH 4/5] Consolidate code for parsing the logging environment variables