26 #if defined (HAVE_CONFIG_H)
33 #include <QMutexLocker>
34 #include <QProcessEnvironment>
45 : m_debugEnabled (false)
47 QProcessEnvironment pe (QProcessEnvironment::systemEnvironment ());
49 if (pe.value (
"QTHANDLES_DEBUG",
"0") !=
"0")
68 #define STATIC_LOGGER(fun) \
69 void Logger::fun (const char *fmt, ...) \
71 QMutexLocker lock (s_mutex); \
74 instance ()->fun ## V (fmt, vl); \
85 vfprintf (stderr, fmt, arg);
86 fprintf (stderr,
"\n");
#define STATIC_LOGGER(fun)
static Logger * s_instance
static Logger * instance(void)
void debugV(const char *fmt, va_list arg)