-/* $Id: yaz-proxy-config.cpp,v 1.9 2004-11-09 14:24:22 adam Exp $
+/* $Id: yaz-proxy-config.cpp,v 1.10 2004-11-30 21:10:45 adam Exp $
Copyright (c) 1998-2004, Index Data.
This file is part of the yaz-proxy.
*/
#include <ctype.h>
-#include <yaz/log.h>
+#include <yaz/ylog.h>
#include <yazproxy/proxy.h>
#if HAVE_XSLT
if (!ndoc)
{
- yaz_log(LOG_WARN, "Config file %s not found or parse error", fname);
+ yaz_log(YLOG_WARN, "Config file %s not found or parse error", fname);
return -1; // no good
}
int noSubstitutions = xmlXIncludeProcess(ndoc);
if (noSubstitutions == -1)
- yaz_log(LOG_WARN, "XInclude processing failed on config %s", fname);
+ yaz_log(YLOG_WARN, "XInclude processing failed on config %s", fname);
xmlNodePtr proxyPtr = xmlDocGetRootElement(ndoc);
if (!proxyPtr || proxyPtr->type != XML_ELEMENT_NODE ||
strcmp((const char *) proxyPtr->name, "proxy"))
{
- yaz_log(LOG_WARN, "No proxy element in %s", fname);
+ yaz_log(YLOG_WARN, "No proxy element in %s", fname);
xmlFreeDoc(ndoc);
return -1;
}