X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Flog.h;h=4aba1f008f0ec8482fadce7b9325d3c3250115cb;hb=d7cf0285e21b40c1fba6259d57bdabae94571bd5;hp=5d52338ec26179e8187a5152a802cc9dee5ba72e;hpb=97b694eca0f3b0669e57bcca37d6a7bcf3766d58;p=yaz-moved-to-github.git diff --git a/include/yaz/log.h b/include/yaz/log.h index 5d52338..4aba1f0 100644 --- a/include/yaz/log.h +++ b/include/yaz/log.h @@ -1,5 +1,5 @@ -/* - * 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: @@ -24,7 +24,6 @@ * (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.43 2007-03-19 12:54:58 adam Exp $ */ /** * \file log.h @@ -196,6 +195,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); + +/** \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 @@ -252,6 +258,7 @@ YAZ_END_CDECL /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab