X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/be25aefab9c2c610e764c6b3ddd0df1c2c9a4797..d15a4cc7241eb025d70551d1fd7eff95d99bf167:/src/xbt/log.c diff --git a/src/xbt/log.c b/src/xbt/log.c index f985905a03..15bbb9a10a 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -25,6 +25,7 @@ #include "xbt/dynar.h" XBT_PUBLIC_DATA(int) (*xbt_pid) (); +int xbt_log_no_loc = 0; /* if set to true (with --log=no_loc), file localization will be omitted (for tesh tests) */ /** \addtogroup XBT_log * @@ -517,6 +518,7 @@ XBT_LOG_NEW_CATEGORY(xbt, "All XBT categories (simgrid toolbox)"); XBT_LOG_NEW_CATEGORY(surf, "All SURF categories"); XBT_LOG_NEW_CATEGORY(msg, "All MSG categories"); XBT_LOG_NEW_CATEGORY(simix, "All SIMIX categories"); +XBT_LOG_NEW_CATEGORY(bindings, "All bindings categories"); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(log, xbt, "Loggings from the logging mechanism itself"); @@ -1050,6 +1052,11 @@ void xbt_log_control_set(const char *control_string) return; DEBUG1("Parse log settings '%s'", control_string); + /* Special handling of no_loc request, which asks for any file localization to be omitted (for tesh runs) */ + if (!strcmp(control_string,"no_loc")) { + xbt_log_no_loc=1; + return; + } /* some initialization if this is the first time that this get called */ if (xbt_log_settings == NULL) xbt_log_settings = xbt_dynar_new(sizeof(xbt_log_setting_t),