#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"
Go to the source code of this file.
Classes | |
class | XrdClientDebug |
Defines | |
#define | DebugLevel() XrdClientDebug::Instance()->GetDebugLevel() |
#define | DebugSetLevel(l) XrdClientDebug::Instance()->SetLevel(l) |
#define | Info(lvl, where, what) |
#define | Error(where, what) |
#define DebugLevel | ( | ) | XrdClientDebug::Instance()->GetDebugLevel() |
#define DebugSetLevel | ( | l | ) | XrdClientDebug::Instance()->SetLevel(l) |
#define Error | ( | where, | |||
what | ) |
{ \ ostringstream outs;\ outs << where << ": " << what; \ XrdClientDebug::Instance()->TraceStream((short)XrdClientDebug::kNODEBUG, outs);\ }
#define Info | ( | lvl, | |||
where, | |||||
what | ) |
{ \ XrdClientDebug::Instance()->Lock();\ if (XrdClientDebug::Instance()->GetDebugLevel() >= lvl) {\ ostringstream outs;\ outs << where << ": " << what; \ XrdClientDebug::Instance()->TraceStream((short)lvl, outs);\ }\ XrdClientDebug::Instance()->Unlock();\ }
Referenced by XrdCmsRedirLocal::Prepare(), and XrdCmsClient::Prepare().