projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added function yaz_log_xml_errors.
[yaz-moved-to-github.git]
/
include
/
yaz
/
log.h
diff --git
a/include/yaz/log.h
b/include/yaz/log.h
index
5d52338
..
103cf1f
100644
(file)
--- a/
include/yaz/log.h
+++ b/
include/yaz/log.h
@@
-196,6
+196,13
@@
YAZ_EXPORT void log_event_start(void (*func)(int level, const char *msg,
YAZ_EXPORT void log_event_end(void (*func)(int level, const char *msg,
void *info), void *info);
YAZ_EXPORT void log_event_end(void (*func)(int level, const char *msg,
void *info), void *info);
+
+/** \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
/* by default, do not enable the old LOG_-defines */
#ifndef YAZ_USE_NEW_LOG
#define YAZ_USE_NEW_LOG 1