-/*
- * Copyright (C) 1995-2008, Index Data ApS
- * All rights reserved.
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2012 Index Data
+ * See the file LICENSE for details.
*/
-
/** \file
\brief Log XML / XSLT Errors via yaz_log
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
va_start(ap, fmt);
yaz_vsnprintf(buf, sizeof(buf), fmt, ap);
- yaz_log(YLOG_WARN, "%s: %s", prefix, buf);
+ yaz_log(xml_error_log_level, "%s: %s", prefix, buf);
va_end (ap);
}
#if YAZ_HAVE_XML2
xmlSetGenericErrorFunc((void *) (prefix ? prefix : "XML"),
xml_error_handler);
-#endif
#if YAZ_HAVE_XSLT
xsltSetGenericErrorFunc((void *) (prefix ? prefix : "XSLT"),
xml_error_handler);
#endif
+#endif
}
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
*/
+