SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
Classes | |
struct | xbt_log_category_s |
struct | xbt_log_event_s |
Macros | |
#define | XBT_LOG_STATIC_THRESHOLD xbt_log_priority_none |
All logging requests with priority < XBT_LOG_STATIC_THRESHOLD are disabled at compile time, i.e., compiled out. More... | |
#define | _XBT_LOGV(cat) _XBT_LOG_CONCAT(_simgrid_log_category__, cat) |
#define | _XBT_LOGV_CTOR(cat) _XBT_LOG_CONCAT2(_XBT_LOGV(cat), __constructor__) |
#define | _XBT_LOG_CONCAT(x, y) x ## y |
#define | _XBT_LOG_CONCAT2(x, y) _XBT_LOG_CONCAT(x, y) |
#define | _XBT_LOGV_CTOR_ATTRIBUTE _XBT_GNUC_CONSTRUCTOR(600) |
#define | XBT_LOG_ROOT_CAT root |
#define | XBT_LOG_CONNECT(cat) |
#define | XBT_LOG_NEW_SUBCATEGORY_helper(catName, parent, desc) |
#define | XBT_LOG_NEW_SUBCATEGORY(catName, parent, desc) |
#define | XBT_LOG_NEW_CATEGORY(catName, desc) |
#define | XBT_LOG_DEFAULT_CATEGORY(cname) |
#define | XBT_LOG_NEW_DEFAULT_CATEGORY(cname, desc) |
#define | XBT_LOG_NEW_DEFAULT_SUBCATEGORY(cname, parent, desc) |
#define | XBT_LOG_EXTERNAL_CATEGORY(cname) |
#define | XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(cname) |
#define | XBT_LOG_ISENABLED(catName, priority) |
#define | _XBT_LOG_ISENABLEDV(catv, priority) |
#define | XBT_CLOG(category, prio, ...) |
#define | XBT_LOG(prio, ...) |
#define | XBT_CDEBUG(categ, ...) |
Log an event at the DEBUG priority on the specified category with these args. More... | |
#define | XBT_CVERB(categ, ...) |
Log an event at the VERB priority on the specified category with these args. More... | |
#define | XBT_CINFO(categ, ...) |
Log an event at the INFO priority on the specified category with these args. More... | |
#define | XBT_CWARN(categ, ...) |
Log an event at the WARN priority on the specified category with these args. More... | |
#define | XBT_CERROR(categ, ...) |
Log an event at the ERROR priority on the specified category with these args. More... | |
#define | XBT_CCRITICAL(categ, ...) |
Log an event at the CRITICAL priority on the specified category with these args (CCRITICALn exists for any n<10). More... | |
#define | XBT_DEBUG(...) |
Log an event at the DEBUG priority on the default category with these args. More... | |
#define | XBT_VERB(...) |
Log an event at the VERB priority on the default category with these args. More... | |
#define | XBT_INFO(...) |
Log an event at the INFO priority on the default category with these args. More... | |
#define | XBT_WARN(...) |
Log an event at the WARN priority on the default category with these args. More... | |
#define | XBT_ERROR(...) |
Log an event at the ERROR priority on the default category with these args. More... | |
#define | XBT_CRITICAL(...) |
Log an event at the CRITICAL priority on the default category with these args. More... | |
#define | _XBT_IN_OUT(...) _XBT_IF_ONE_ARG(_XBT_IN_OUT_ARG1, _XBT_IN_OUT_ARGN, __VA_ARGS__)(__VA_ARGS__) |
#define | _XBT_IN_OUT_ARG1(fmt) XBT_LOG(xbt_log_priority_trace, fmt, __func__) |
#define | _XBT_IN_OUT_ARGN(fmt, ...) XBT_LOG(xbt_log_priority_trace, fmt, __func__, __VA_ARGS__) |
#define | XBT_IN(...) |
Log at TRACE priority that we entered in current function, appending a user specified format. More... | |
#define | XBT_OUT(...) |
Log at TRACE priority that we exited the current function, appending a user specified format. More... | |
#define | XBT_HERE(...) |
Log at TRACE priority a message indicating that we reached that point, appending a user specified format. More... | |
Typedefs | |
typedef struct xbt_log_appender_s | s_xbt_log_appender_t |
typedef struct xbt_log_appender_s * | xbt_log_appender_t |
typedef struct xbt_log_layout_s | s_xbt_log_layout_t |
typedef struct xbt_log_layout_s * | xbt_log_layout_t |
typedef struct xbt_log_event_s | s_xbt_log_event_t |
typedef struct xbt_log_event_s * | xbt_log_event_t |
typedef struct xbt_log_category_s | s_xbt_log_category_t |
typedef struct xbt_log_category_s * | xbt_log_category_t |
Enumerations | |
enum | e_xbt_log_priority_t { xbt_log_priority_trace = 1, xbt_log_priority_debug = 2, xbt_log_priority_verbose = 3, xbt_log_priority_info = 4, xbt_log_priority_warning = 5, xbt_log_priority_error = 6, xbt_log_priority_critical = 7, xbt_log_priority_infinite = 8 } |
Log prioritiesThe different existing priorities. More... | |
Functions | |
void | xbt_log_control_set (const char *cs) |
void | xbt_log_threshold_set (xbt_log_category_t cat, e_xbt_log_priority_t thresholdPriority) |
void | xbt_log_appender_set (xbt_log_category_t cat, xbt_log_appender_t app) |
void | xbt_log_layout_set (xbt_log_category_t cat, xbt_log_layout_t lay) |
void | xbt_log_additivity_set (xbt_log_category_t cat, int additivity) |
xbt_log_layout_t | xbt_log_layout_simple_new (char *arg) |
create a new simple layout More... | |
xbt_log_layout_t | xbt_log_layout_format_new (char *arg) |
xbt_log_appender_t | xbt_log_appender_file_new (char *arg) |
xbt_log_appender_t | xbt_log_appender2_file_new (char *arg, int roll) |
void | _xbt_log_event_log (xbt_log_event_t ev, const char *fmt,...) XBT_ATTRIB_PRINTF(2 |
void int | _xbt_log_cat_init (xbt_log_category_t category, e_xbt_log_priority_t priority) |
s_xbt_log_category_t | _XBT_LOGV (XBT_LOG_ROOT_CAT) |
Variables | |
xbt_log_appender_t | xbt_log_default_appender |
xbt_log_layout_t | xbt_log_default_layout |
#define _XBT_LOGV | ( | cat | ) | _XBT_LOG_CONCAT(_simgrid_log_category__, cat) |
#define _XBT_LOGV_CTOR | ( | cat | ) | _XBT_LOG_CONCAT2(_XBT_LOGV(cat), __constructor__) |
#define _XBT_LOG_CONCAT | ( | x, | |
y | |||
) | x ## y |
#define _XBT_LOG_CONCAT2 | ( | x, | |
y | |||
) | _XBT_LOG_CONCAT(x, y) |
#define _XBT_LOGV_CTOR_ATTRIBUTE _XBT_GNUC_CONSTRUCTOR(600) |
#define XBT_LOG_ROOT_CAT root |
#define XBT_LOG_CONNECT | ( | cat | ) |
#define XBT_LOG_NEW_SUBCATEGORY_helper | ( | catName, | |
parent, | |||
desc | |||
) |
#define _XBT_LOG_ISENABLEDV | ( | catv, | |
priority | |||
) |
#define XBT_CLOG | ( | category, | |
prio, | |||
... | |||
) |
#define XBT_LOG | ( | prio, | |
... | |||
) |
#define _XBT_IN_OUT | ( | ... | ) | _XBT_IF_ONE_ARG(_XBT_IN_OUT_ARG1, _XBT_IN_OUT_ARGN, __VA_ARGS__)(__VA_ARGS__) |
#define _XBT_IN_OUT_ARG1 | ( | fmt | ) | XBT_LOG(xbt_log_priority_trace, fmt, __func__) |
#define _XBT_IN_OUT_ARGN | ( | fmt, | |
... | |||
) | XBT_LOG(xbt_log_priority_trace, fmt, __func__, __VA_ARGS__) |
typedef struct xbt_log_appender_s s_xbt_log_appender_t |
typedef struct xbt_log_appender_s* xbt_log_appender_t |
typedef struct xbt_log_layout_s s_xbt_log_layout_t |
typedef struct xbt_log_layout_s* xbt_log_layout_t |
typedef struct xbt_log_event_s s_xbt_log_event_t |
typedef struct xbt_log_event_s* xbt_log_event_t |
typedef struct xbt_log_category_s s_xbt_log_category_t |
typedef struct xbt_log_category_s* xbt_log_category_t |
void xbt_log_threshold_set | ( | xbt_log_category_t | cat, |
e_xbt_log_priority_t | thresholdPriority | ||
) |
cat | the category (not only its name, but the variable) |
thresholdPriority | the priority |
Programatically alters a category's threshold priority (don't use).
void xbt_log_appender_set | ( | xbt_log_category_t | cat, |
xbt_log_appender_t | app | ||
) |
cat | the category (not only its name, but the variable) |
app | the appender |
Programatically sets the category's appender. (the preferred interface is through xbt_log_control_set())
void xbt_log_layout_set | ( | xbt_log_category_t | cat, |
xbt_log_layout_t | lay | ||
) |
cat | the category (not only its name, but the variable) |
lay | the layout |
Programatically sets the category's layout. (the preferred interface is through xbt_log_control_set())
void xbt_log_additivity_set | ( | xbt_log_category_t | cat, |
int | additivity | ||
) |
cat | the category (not only its name, but the variable) |
additivity | whether logging actions must be passed to parent. |
Programatically sets whether the logging actions must be passed to the parent category. (the preferred interface is through xbt_log_control_set())
xbt_log_layout_t xbt_log_layout_simple_new | ( | char * | arg | ) |
create a new simple layout
This layout is not as flexible as the pattern one
xbt_log_layout_t xbt_log_layout_format_new | ( | char * | arg | ) |
xbt_log_appender_t xbt_log_appender_file_new | ( | char * | arg | ) |
xbt_log_appender_t xbt_log_appender2_file_new | ( | char * | arg, |
int | roll | ||
) |
void _xbt_log_event_log | ( | xbt_log_event_t | ev, |
const char * | fmt, | ||
... | |||
) |
void int _xbt_log_cat_init | ( | xbt_log_category_t | category, |
e_xbt_log_priority_t | priority | ||
) |
s_xbt_log_category_t _XBT_LOGV | ( | XBT_LOG_ROOT_CAT | ) |
xbt_log_appender_t xbt_log_default_appender |
xbt_log_layout_t xbt_log_default_layout |