X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Flog.h;h=2c9e8f9cfb6fcf4df45c9fba382107943f15337d;hp=e34a9d7dbd0ba497969d7b1e7b763391e4661598;hb=3e818921e959b654fe072fc7419f1b7f89007b21;hpb=5475567b7f05fbc245cedb1b3ecdbc63ac671685 diff --git a/include/yaz/log.h b/include/yaz/log.h index e34a9d7..2c9e8f9 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.30 2004-12-13 20:16:50 adam Exp $ + * $Id: log.h,v 1.31 2004-12-20 15:52:53 heikki 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 */