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