libxlLoggerCloseFile(libxlLogger *logger, int id)
{
    g_autofree char *domidstr = NULL;
    domidstr = g_strdup_printf("%d", id);

    virMutexLock(&logger->tableLock);
    ignore_value(virHashRemoveEntry(logger->files, domidstr));
    virMutexUnlock(&logger->tableLock);
}
libxlLoggerCloseFile(libxlLogger *logger, int id)
{
    g_autofree char *domidstr = NULL;
    domidstr = g_strdup_printf("%d", id);

    virMutexLock(&logger->tableLock);
    ignore_value(virHashRemoveEntry(logger->files, domidstr));
    virMutexUnlock(&logger->tableLock);
}