X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Flog.h;h=2485705d08a8b3a836c196997a2a503912b84867;hb=31e3a0ef5a0866477a3b54dc6ffbeb0aca4e0029;hp=e34a9d7dbd0ba497969d7b1e7b763391e4661598;hpb=202a9b4632862b584c3d024881d4bbe0d5b2bee5;p=yaz-moved-to-github.git diff --git a/include/yaz/log.h b/include/yaz/log.h index e34a9d7..2485705 100644 --- a/include/yaz/log.h +++ b/include/yaz/log.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2004, Index Data. + * Copyright (C) 1995-2005, Index Data ApS * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -23,7 +23,7 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Id: log.h,v 1.30 2004-12-13 20:16:50 adam Exp $ + * $Id: log.h,v 1.32 2005-01-15 19:47:09 adam Exp $ */ /** @@ -59,7 +59,10 @@ YAZ_BEGIN_CDECL #define YLOG_ALL (0xffff&~YLOG_MALLOC&~YLOG_NOTIME) -#define YLOG_DEFAULT_LEVEL (YLOG_FATAL | YLOG_ERRNO | YLOG_LOG | YLOG_WARN) +#define YLOG_DEFAULT_LEVEL \ + (YLOG_FATAL | YLOG_ERRNO | YLOG_LOG | YLOG_WARN | YLOG_FLUSH) +/* not having flush here confuses Solaris users, who won't see any logs until + * (and if) the program exits normally */ #define YLOG_LAST_BIT YLOG_LOGLVL /* the last bit used for regular log bits */ /* the rest are for dynamic modules */