#include <XrdClientDebug.hh>
Public Types | |
enum | { kNODEBUG = 0, kUSERDEBUG = 1, kHIDEBUG = 2, kDUMPDEBUG = 3 } |
Public Member Functions | |
short | GetDebugLevel () |
void | SetLevel (int l) |
void | TraceStream (short DbgLvl, ostringstream &s) |
void | TraceString (short DbgLvl, char *s) |
void | Lock () |
void | Unlock () |
Static Public Member Functions | |
static XrdClientDebug * | Instance () |
Protected Member Functions | |
XrdClientDebug () | |
~XrdClientDebug () | |
Private Attributes | |
short | fDbgLevel |
XrdSysLogger * | fOucLog |
XrdSysError * | fOucErr |
XrdSysRecMutex | fMutex |
Static Private Attributes | |
static XrdClientDebug * | fgInstance |
XrdClientDebug::XrdClientDebug | ( | ) | [protected] |
XrdClientDebug::~XrdClientDebug | ( | ) | [protected] |
short XrdClientDebug::GetDebugLevel | ( | ) | [inline] |
References fDbgLevel, and fMutex.
Referenced by TraceStream(), and TraceString().
static XrdClientDebug* XrdClientDebug::Instance | ( | ) | [static] |
void XrdClientDebug::Lock | ( | ) | [inline] |
References fMutex, and XrdSysMutex::Lock().
void XrdClientDebug::TraceStream | ( | short | DbgLvl, | |
ostringstream & | s | |||
) | [inline] |
References XrdSysError::Emsg(), fMutex, fOucErr, and GetDebugLevel().
void XrdClientDebug::TraceString | ( | short | DbgLvl, | |
char * | s | |||
) | [inline] |
References XrdSysError::Emsg(), fMutex, fOucErr, and GetDebugLevel().
void XrdClientDebug::Unlock | ( | ) | [inline] |
References fMutex, and XrdSysMutex::UnLock().
short XrdClientDebug::fDbgLevel [private] |
Referenced by GetDebugLevel(), and SetLevel().
XrdClientDebug* XrdClientDebug::fgInstance [static, private] |
XrdSysRecMutex XrdClientDebug::fMutex [private] |
Referenced by GetDebugLevel(), Lock(), SetLevel(), TraceStream(), TraceString(), and Unlock().
XrdSysError* XrdClientDebug::fOucErr [private] |
Referenced by TraceStream(), and TraceString().
XrdSysLogger* XrdClientDebug::fOucLog [private] |