0, 0, 0,
"root", xbt_log_priority_uninitialized, 0,
NULL, 0
0, 0, 0,
"root", xbt_log_priority_uninitialized, 0,
NULL, 0
appender->do_append(appender, ev, fmt);
}
if (!cat->willLogToParent)
appender->do_append(appender, ev, fmt);
}
if (!cat->willLogToParent)
#endif
xbt_log_parent_set(category, category->parent);
}
_apply_control(category);
#endif
xbt_log_parent_set(category, category->parent);
}
_apply_control(category);
return priority >= category->threshold;
}
void xbt_log_parent_set(xbt_log_category_t cat,xbt_log_category_t parent)
{
return priority >= category->threshold;
}
void xbt_log_parent_set(xbt_log_category_t cat,xbt_log_category_t parent)
{
xbt_assert0(cat,"NULL category to be given a parent");
xbt_assert1(parent,"The parent category of %s is NULL",cat->name);
xbt_assert0(cat,"NULL category to be given a parent");
xbt_assert1(parent,"The parent category of %s is NULL",cat->name);
for( ; child != NULL; child = child->nextSibling) {
if (child->isThreshInherited) {
if (cat != &_XBT_LOGV(log))
for( ; child != NULL; child = child->nextSibling) {
if (child->isThreshInherited) {
if (cat != &_XBT_LOGV(log))
}
void xbt_log_threshold_set(xbt_log_category_t cat,
e_xbt_log_priority_t threshold) {
cat->threshold = threshold;
cat->isThreshInherited = 0;
}
void xbt_log_threshold_set(xbt_log_category_t cat,
e_xbt_log_priority_t threshold) {
cat->threshold = threshold;
cat->isThreshInherited = 0;
}
static void _xbt_log_parse_setting(const char* control_string,
xbt_log_setting_t set) {
const char *name, *dot, *eq;
}
static void _xbt_log_parse_setting(const char* control_string,
xbt_log_setting_t set) {
const char *name, *dot, *eq;
strncpy(set->catname,name,dot-name);
set->catname[dot-name]='\0'; /* Just in case */
DEBUG1("This is for cat '%s'", set->catname);
strncpy(set->catname,name,dot-name);
set->catname[dot-name]='\0'; /* Just in case */
DEBUG1("This is for cat '%s'", set->catname);
}
static xbt_log_category_t _xbt_log_cat_searchsub(xbt_log_category_t cat,char *name) {
xbt_log_category_t child;
}
static xbt_log_category_t _xbt_log_cat_searchsub(xbt_log_category_t cat,char *name) {
xbt_log_category_t child;
if (!strcmp(cat->name,name)) {
return cat;
}
for(child=cat->firstChild ; child != NULL; child = child->nextSibling) {
return _xbt_log_cat_searchsub(child,name);
}
if (!strcmp(cat->name,name)) {
return cat;
}
for(child=cat->firstChild ; child != NULL; child = child->nextSibling) {
return _xbt_log_cat_searchsub(child,name);
}
DEBUG1("Parse log settings '%s'",control_string);
if (control_string == NULL)
return;
DEBUG1("Parse log settings '%s'",control_string);
if (control_string == NULL)
return;