X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Flog.h;h=5d52338ec26179e8187a5152a802cc9dee5ba72e;hp=68218561d98922404f2f35b8a815fa40de2b90fb;hb=297aa7b45c3bd88aea2799f6810c8c85bc998f56;hpb=964580242e2e0b2e570f652afa58bfb90ad0bb5e diff --git a/include/yaz/log.h b/include/yaz/log.h index 6821856..5d52338 100644 --- a/include/yaz/log.h +++ b/include/yaz/log.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2006, Index Data + * Copyright (c) 1995-2007, 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,7 @@ * (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.39 2006-10-09 21:02:41 adam Exp $ */ +/* $Id: log.h,v 1.43 2007-03-19 12:54:58 adam Exp $ */ /** * \file log.h @@ -196,6 +196,11 @@ 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); +/* by default, do not enable the old LOG_-defines */ +#ifndef YAZ_USE_NEW_LOG +#define YAZ_USE_NEW_LOG 1 +#endif + #if YAZ_USE_NEW_LOG #else @@ -239,7 +244,7 @@ YAZ_EXPORT void log_event_end(void (*func)(int level, const char *msg, /** \brief logf is deprecated, as it conflicts with a math function */ #define logf yaz_log -#endif /* if YAZ_USE_NEW_LOG */ +#endif /* if !YAZ_USE_NEW_LOG */ YAZ_END_CDECL