35 const char *
const fmt,
37 TR_Logger
object = _object;
39 if (level >= object->min_level) {
44 va_start(params, fmt);
45 msg_size = vsnprintf(NULL, msg_size, fmt, params);
50 va_start(params, fmt);
51 vsnprintf(msg, msg_size + 1, fmt, params);
54 TR_CALL(_object, TR_Logger, log, level, msg);
#define TR_CALL(object, _iface, method,...)
void TR_loggerLog(void *_object, TR_logger_level level, const char *const fmt,...)
TR_CREATE_INTERFACE(TR_Logger, 1)