X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c4757d074e3631b1e316cb5adfc7f0238bc1b761..8412602500cae5f46897c6a85de6816c2ba8d427:/include/xbt/log.h diff --git a/include/xbt/log.h b/include/xbt/log.h index 5887e8612f..7df75c3aeb 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -246,27 +246,14 @@ struct xbt_log_category_s { int additivity; }; -struct xbt_log_appender_s { - void (*do_append) (xbt_log_appender_t this_appender, - char *event); - void (*free_) (xbt_log_appender_t this_); - void *data; -}; - -struct xbt_log_layout_s { - void (*do_layout)(xbt_log_layout_t l, - xbt_log_event_t event, const char *fmt); - void (*free_) (xbt_log_layout_t l); - void *data; -} ; - struct xbt_log_event_s { xbt_log_category_t cat; e_xbt_log_priority_t priority; const char* fileName; const char* functionName; - int lineNum; + int lineNum; va_list ap; + va_list ap_copy; /* need a copy to launch dynamic layouts when the static ones overflowed */ char buffer[XBT_LOG_BUFF_SIZE]; }; @@ -348,7 +335,6 @@ XBT_PUBLIC(int) _xbt_log_cat_init(xbt_log_category_t category, XBT_PUBLIC_DATA(s_xbt_log_category_t) _XBT_LOGV(XBT_LOG_ROOT_CAT); -XBT_LOG_EXTERNAL_CATEGORY(GRAS); extern xbt_log_appender_t xbt_log_default_appender; extern xbt_log_layout_t xbt_log_default_layout;