xrootd
Classes | Macros
XrdClientDebug.hh File Reference
#include <sstream>
#include "XrdClient/XrdClientConst.hh"
#include "XrdSys/XrdSysPthread.hh"
#include "XrdClient/XrdClientEnv.hh"
#include "XrdSys/XrdSysHeaders.hh"
#include "XrdSys/XrdSysLogger.hh"
#include "XrdSys/XrdSysError.hh"
Include dependency graph for XrdClientDebug.hh:

Go to the source code of this file.

Classes

class  XrdClientDebug
 

Macros

#define DebugLevel()   XrdClientDebug::Instance()->GetDebugLevel()
 
#define DebugSetLevel(l)   XrdClientDebug::Instance()->SetLevel(l)
 
#define Info(lvl, where, what)
 
#define Error(where, what)
 

Macro Definition Documentation

◆ DebugLevel

#define DebugLevel ( )    XrdClientDebug::Instance()->GetDebugLevel()

◆ DebugSetLevel

#define DebugSetLevel (   l)    XrdClientDebug::Instance()->SetLevel(l)

◆ Error

#define Error (   where,
  what 
)
Value:
{ \
ostringstream outs;\
outs << where << ": " << what; \
}

◆ Info

#define Info (   lvl,
  where,
  what 
)
Value:
{ \
if (XrdClientDebug::Instance()->GetDebugLevel() >= lvl) {\
ostringstream outs;\
outs << where << ": " << what; \
XrdClientDebug::Instance()->TraceStream((short)lvl, outs);\
}\
}
XrdClientDebug::TraceStream
void TraceStream(short DbgLvl, ostringstream &s)
Definition: XrdClientDebug.hh:105
XrdClientDebug::Lock
void Lock()
Definition: XrdClientDebug.hh:122
XrdClientDebug::Instance
static XrdClientDebug * Instance()
XrdClientDebug::kNODEBUG
@ kNODEBUG
Definition: XrdClientDebug.hh:87
XrdClientDebug::Unlock
void Unlock()
Definition: XrdClientDebug.hh:123