this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add msgtracer_keys.h

+33 -1
+14 -1
src/libDiagnosticMessagesClient/include/msgtracer_client.h
··· 3 3 4 4 #include <asl.h> 5 5 6 - extern void msgtracer_log_with_keys(char *key1, int value1, char *things, ...); 6 + /** 7 + * how it seems to be used: 8 + * msgtracer_log_with_keys( 9 + * "message.id.here", // usually the bundle id of the caller plus some arbitrary message name 10 + * ASL_LEVEL_<something>, // one of the asl log levels in `asl.h` 11 + * // the rest of the arguments are just pairs of arguments 12 + * // the pairs go a little something like this: 13 + * kMsgTracerKey<some-key-name>, // one of the keys in `msgtracer_keys.h` 14 + * <some-c-string-value> // value for the provided key 15 + * ... // as many of those pairs as you want 16 + * NULL // and finally you terminate it with `NULL` so the function knows where the arguments end 17 + * ) 18 + */ 19 + extern void msgtracer_log_with_keys(char* logger_id, int log_level, ...); 7 20 8 21 #endif
+19
src/libDiagnosticMessagesClient/include/msgtracer_keys.h
··· 1 + #ifndef __MSGTRACER_KEYS_H__ 2 + #define __MSGTRACER_KEYS_H__ 3 + 4 + // from: 5 + // `Security/OSX/libsecurity_ssl/Security/sslTransport.c` 6 + // `Security/securityd/src/token.cpp` 7 + // `IOKitUser/hidsystem.subproj/IOHIDLib.c` 8 + // plus a little bit of common sense ;) 9 + // 10 + // once again, i am amazed at Apple's failure to properly hide things 11 + #define kMsgTracerKeySignature "com.apple.message.signature" 12 + #define kMsgTracerKeySummarize "com.apple.message.summarize" 13 + #define kMsgTracerKeySignature2 "com.apple.message.signature2" 14 + 15 + // these are good guesses 16 + #define kMsgTracerKeyValue "com.apple.message.value" 17 + #define kMsgTracerKeyValue2 "com.apple.message.value2" 18 + 19 + #endif // __MSGTRACER_KEYS_H__