-
-
-
-}
-
-void _xbt_log_event_log( xbt_log_event_t ev, const char *fmt, ...) {
-
-
- xbt_log_category_t cat = ev->cat;
-
-
-
-
- va_start(ev->ap, fmt);
- while(1) {
- xbt_log_appender_t appender = cat->appender;
- if (appender != NULL) {
-
- appender->do_append(appender, ev, fmt);
- }
- if (!cat->willLogToParent)
- break;
-
- cat = cat->parent;
- }
- va_end(ev->ap);
-}
-
-static void _cat_init(xbt_log_category_t category)
-{
-
-
- if(category == &_XBT_LOGV(XBT_LOG_ROOT_CAT)){
- category->threshold = xbt_log_priority_info;/* xbt_log_priority_debug*/;
- category->appender = xbt_log_default_appender;
- }
- else
- {
-
- #if (defined(_WIN32) && !defined(DLL_STATIC))
- if(!category->parent){
- category->parent = &_XBT_LOGV(XBT_LOG_ROOT_CAT);
- }
- #endif
-
- xbt_log_parent_set(category, category->parent);
- }
-
- _apply_control(category);
-
-
-}
-
-/*
- * This gets called the first time a category is referenced and performs the
- * initialization.
- * Also resets threshold to inherited!
- */
-int _xbt_log_cat_init(e_xbt_log_priority_t priority,xbt_log_category_t category)
-{