X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b36e8791797d299ccf61a294e7eb6dd39ecac7dc..60ef872d5e96a7fa7b8ab43162d73517197e1c3c:/src/xbt/log_private.h diff --git a/src/xbt/log_private.h b/src/xbt/log_private.h index d9a79c80c7..1680b5956d 100644 --- a/src/xbt/log_private.h +++ b/src/xbt/log_private.h @@ -10,18 +10,29 @@ #include "xbt/log.h" struct xbt_log_appender_s { - void (*do_append) (xbt_log_appender_t this_appender, - char *event); + 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 (*do_layout) (xbt_log_layout_t l, + xbt_log_event_t event, const char *fmt, + xbt_log_appender_t appender); void (*free_) (xbt_log_layout_t l); void *data; -} ; +}; + + +/** + * \ingroup XBT_log_implem + * \param cat the category (not only its name, but the variable) + * \param parent the parent cat + * + * Programatically alter a category's parent (don't use). + */ +XBT_PUBLIC(void) xbt_log_parent_set(xbt_log_category_t cat, + xbt_log_category_t parent); #endif /* LOG_PRIVATE_H */