this repo has no description
at fixPythonPipStalling 29 lines 879 B view raw
1#ifndef __MSGTRACER_CLIENT_H__ 2#define __MSGTRACER_CLIENT_H__ 3 4#include <asl.h> 5 6#ifdef __cplusplus 7extern "C" { 8#endif 9 10/** 11 * how it seems to be used: 12 * msgtracer_log_with_keys( 13 * "message.id.here", // usually the bundle id of the caller plus some arbitrary message name 14 * ASL_LEVEL_<something>, // one of the asl log levels in `asl.h` 15 * // the rest of the arguments are just pairs of arguments 16 * // the pairs go a little something like this: 17 * kMsgTracerKey<some-key-name>, // one of the keys in `msgtracer_keys.h` 18 * <some-c-string-value> // value for the provided key 19 * ... // as many of those pairs as you want 20 * NULL // and finally you terminate it with `NULL` so the function knows where the arguments end 21 * ) 22 */ 23extern void msgtracer_log_with_keys(char* logger_id, int log_level, ...); 24 25#ifdef __cplusplus 26}; 27#endif 28 29#endif