/*
* Do NOT access any members of this structure directly. FIXME: move to private?
*/
+#define XBT_LOG_BUFF_SIZE 2048 /* Size of the static string in which we build the log string */
struct xbt_log_category_s {
xbt_log_category_t parent;
xbt_log_category_t firstChild;
};
struct xbt_log_layout_s {
- char *(*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);
void (*free_) (xbt_log_layout_t l);
void *data;
} ;
const char* functionName;
int lineNum;
va_list ap;
+ char buffer[XBT_LOG_BUFF_SIZE];
};
/**
#define _XBT_LOG_PRE(catv, priority) do { \
if (_XBT_LOG_ISENABLEDV(catv, priority)) { \
s_xbt_log_event_t _log_ev = \
- {NULL,priority,__FILE__,_XBT_FUNCTION,__LINE__}; \
+ {NULL,priority,__FILE__,_XBT_FUNCTION,__LINE__}; \
_log_ev.cat = &(catv); \
_xbt_log_event_log(&_log_ev \