* LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*
- * $Id: log.h,v 1.17 2004-11-03 22:33:17 adam Exp $
+ * $Id: log.h,v 1.18 2004-11-04 14:19:58 heikki Exp $
*/
/**
/** yaz_log_mask_str_x is like yaz_log_mask_str, but with a given start value*/
YAZ_EXPORT int yaz_log_mask_str_x(const char *str, int level);
+
/**
* yaz_log_module_level returns a log level mask corresponding to the module
* name. If that had been specified on the -v arguments (that is, passed to
* Copyright (c) 1995-2004, Index Data
* See the file LICENSE for details.
*
- * $Id: log.c,v 1.11 2004-11-03 22:33:17 adam Exp $
+ * $Id: log.c,v 1.12 2004-11-04 14:19:58 heikki Exp $
*/
/**
{
if (*mask_names[i].name && mask_names[i].mask &&
mask_names[i].mask != LOG_ALL)
+ {
sprintf(flags + strlen(flags), "[%s]", mask_names[i].name);
- level -= mask_names[i].mask;
+ level &= ~mask_names[i].mask;
+ }
}
va_start(ap, fmt);
#ifdef WIN32