From: Heikki Levanto Date: Thu, 22 May 2003 13:15:07 +0000 (+0000) Subject: Defined log level bits app2 and app3 X-Git-Tag: YAZ.2.0.2.RH.2~8 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=c39a893dfdae5f792139177132e7e7a70e010aa7;p=yaz-moved-to-github.git Defined log level bits app2 and app3 --- diff --git a/include/yaz/log.h b/include/yaz/log.h index 2499d0a..32f0ea2 100644 --- a/include/yaz/log.h +++ b/include/yaz/log.h @@ -23,7 +23,7 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: log.h,v 1.9 2003-02-12 14:17:50 heikki Exp $ + * $Id: log.h,v 1.10 2003-05-22 13:15:07 heikki Exp $ */ #ifndef LOG_H @@ -44,6 +44,8 @@ YAZ_BEGIN_CDECL #define LOG_APP 0x0040 /* For application level events such as new-connection */ #define LOG_MALLOC 0x0080 /* debugging mallocs */ #define LOG_NOTIME 0x0100 /* do not output date and time */ +#define LOG_APP2 0x0200 /* For application-level events, such as api calls */ +#define LOG_APP3 0x0200 /* For more application-level events */ #define LOG_ALL (0xffff&~LOG_MALLOC&~LOG_NOTIME) diff --git a/util/log.c b/util/log.c index 00c3e9d..5a61699 100644 --- a/util/log.c +++ b/util/log.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: log.c,v 1.37 2003-02-18 14:28:53 adam Exp $ + * $Id: log.c,v 1.38 2003-05-22 13:15:08 heikki Exp $ */ #if HAVE_CONFIG_H @@ -54,6 +54,8 @@ static struct { { LOG_MALLOC, "malloc"}, { LOG_APP, "app" }, { LOG_NOTIME, "" }, + { LOG_APP2 , "app2" }, + { LOG_APP3 , "app3" }, { LOG_ALL, "all" }, { 0, "none" }, { 0, NULL }