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);
Definition: XrdClientDebug.hh:69
XrdSysLogger * fOucLog
Definition: XrdClientDebug.hh:73
void Lock()
Definition: XrdClientDebug.hh:122
short GetDebugLevel()
Definition: XrdClientDebug.hh:93
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
static XrdClientDebug * Instance()
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