-/*
- * Copyright (c) 1995-2007, Index Data
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2009 Index Data.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/* $Id: log.h,v 1.42 2007-01-03 08:42:14 adam Exp $ */
/**
* \file log.h
YAZ_EXPORT void log_event_end(void (*func)(int level, const char *msg,
void *info), void *info);
-/* if syslog.h is already included, do not define the old LOG_'s */
-#ifdef LOG_DEBUG
-#undef YAZ_USE_NEW_LOG
+
+/** \brief Makes Libxml2/Libxslt log errors via yaz_log
+ \param prefix prefix to use for log messages (may be 0)
+ \param log_level log level to use for messages
+*/
+YAZ_EXPORT void yaz_log_xml_errors(const char *prefix, int log_level);
+
+/* by default, do not enable the old LOG_-defines */
+#ifndef YAZ_USE_NEW_LOG
#define YAZ_USE_NEW_LOG 1
#endif
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab