49#define DebugLevel() XrdClientDebug::Instance()->GetDebugLevel()
50#define DebugSetLevel(l) XrdClientDebug::Instance()->SetLevel(l)
52#define Info(lvl, where, what) { \
53XrdClientDebug::Instance()->Lock();\
54if (XrdClientDebug::Instance()->GetDebugLevel() >= lvl) {\
56outs << where << ": " << what; \
57XrdClientDebug::Instance()->TraceStream((short)lvl, outs);\
59XrdClientDebug::Instance()->Unlock();\
62#define Error(where, what) { \
64outs << where << ": " << what; \
65XrdClientDebug::Instance()->TraceStream((short)XrdClientDebug::kNODEBUG, outs);\
Definition: XrdClientDebug.hh:69
XrdSysLogger * fOucLog
Definition: XrdClientDebug.hh:73
void Lock()
Definition: XrdClientDebug.hh:122
short GetDebugLevel()
Definition: XrdClientDebug.hh:93
static XrdClientDebug * Instance()
@ kNODEBUG
Definition: XrdClientDebug.hh:87
@ kUSERDEBUG
Definition: XrdClientDebug.hh:88
@ kDUMPDEBUG
Definition: XrdClientDebug.hh:90
@ kHIDEBUG
Definition: XrdClientDebug.hh:89
void TraceString(short DbgLvl, char *s)
Definition: XrdClientDebug.hh:116
XrdSysError * fOucErr
Definition: XrdClientDebug.hh:74
void SetLevel(int l)
Definition: XrdClientDebug.hh:100
XrdSysRecMutex fMutex
Definition: XrdClientDebug.hh:78
void TraceStream(short DbgLvl, ostringstream &s)
Definition: XrdClientDebug.hh:105
static XrdClientDebug * fgInstance
Definition: XrdClientDebug.hh:76
short fDbgLevel
Definition: XrdClientDebug.hh:71
void Unlock()
Definition: XrdClientDebug.hh:123
Definition: XrdSysError.hh:90
int Emsg(const char *esfx, int ecode, const char *text1, const char *text2=0)
Definition: XrdSysLogger.hh:53
Definition: XrdSysPthread.hh:261
void Lock()
Definition: XrdSysPthread.hh:220
void UnLock()
Definition: XrdSysPthread.hh:222
Definition: XrdSysPthread.hh:240