X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Flog.h;h=6c203abb49cb15dcd137790b0fff0017841b7412;hp=9e2a05d383b6cc4ae1c5637cdc43a8307876f309;hb=e958092d7a7b66ff71cb05434b900d871e1f30fa;hpb=9a32992b1041bf622fdc4825262f5f7110494cce diff --git a/include/yaz/log.h b/include/yaz/log.h index 9e2a05d..6c203ab 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.18 2004-11-04 14:19:58 heikki Exp $ + * $Id: log.h,v 1.19 2004-11-16 17:08:11 heikki Exp $ */ /** @@ -52,12 +52,14 @@ YAZ_BEGIN_CDECL #define LOG_APP2 0x00000200 /* Application-level events, such as api calls */ #define LOG_APP3 0x00000400 /* For more application-level events */ #define LOG_FLUSH 0x00000800 /* Flush log after every write (DEBUG does too) */ +#define LOG_LOGLVL 0x00001000 /* log when modules query log levels */ + /* this has to be a hard-coded bit, not to loop*/ #define LOG_ALL (0xffff&~LOG_MALLOC&~LOG_NOTIME) #define LOG_DEFAULT_LEVEL (LOG_FATAL | LOG_ERRNO | LOG_LOG | LOG_WARN) -#define LOG_LAST_BIT LOG_FLUSH /* the last bit used for regular log bits */ +#define LOG_LAST_BIT LOG_LOGLVL /* the last bit used for regular log bits */ /* the rest are for dynamic modules */ #define logf yaz_log