1 #ifndef TORCLOGGINGDEFS_H_ 2 #define TORCLOGGINGDEFS_H_ 4 #undef VERBOSE_PREAMBLE 5 #undef VERBOSE_POSTAMBLE 8 #undef LOGLEVEL_PREAMBLE 9 #undef LOGLEVEL_POSTAMBLE 12 #ifdef _IMPLEMENT_VERBOSE 15 #define VERBOSE_PREAMBLE 16 #define VERBOSE_POSTAMBLE 17 #define VERBOSE_MAP(name,mask,additive,help) \ 18 AddVerbose((uint64_t)(mask),QStringLiteral(#name),(bool)(additive),QStringLiteral(help)); 20 #define LOGLEVEL_PREAMBLE 21 #define LOGLEVEL_POSTAMBLE 22 #define LOGLEVEL_MAP(name,value,shortname) \ 23 AddLogLevel((int)(value),QStringLiteral(#name),(char)(shortname)); 25 #else // !defined(_IMPLEMENT_VERBOSE) 28 #define VERBOSE_PREAMBLE \ 30 #define VERBOSE_POSTAMBLE \ 33 #define VERBOSE_MAP(name,mask,additive,help) \ 34 name = (uint64_t)(mask), 36 #define LOGLEVEL_PREAMBLE \ 38 #define LOGLEVEL_POSTAMBLE \ 40 #define LOGLEVEL_MAP(name,value,shortname) \ 47 "ALL available debug output")
51 "Network protocol related messages")
53 "UPnP debugging messages")
#define LOGLEVEL_PREAMBLE
#define LOGLEVEL_POSTAMBLE
#define LOGLEVEL_MAP(name, value, shortname)
#define VERBOSE_POSTAMBLE
#define VERBOSE_MAP(name, mask, additive, help)