1 #ifndef __XRDSYSTRACE_HH__
2 #define __XRDSYSTRACE_HH__
45 #define SYSTRACE(obj, usr, epn, txt, dbg) \
46 obj Beg(usr, epn, txt) <<dbg <<obj End();
52 XrdSysTrace&
Beg(
const char *usr=0,
const char *epn=0,
const char *txt=0);
58 typedef void (*
msgCB_t)(
const char *tid,
const char *msg,
bool dbgmsg);
83 {
return Insert(
static_cast<long double>(val));}
85 {
return Insert(
static_cast<long double>(val));}
96 :
What(tf), logP(logp), iName(pfx), dPnt(0),
97 dFree(txtMax), vPnt(1), doFmt(
Xrd::
dec) {}
104 static const int iovMax = 16;
105 static const int pfxMax = 256;
106 static const int txtMax = 256;
108 static const int doOne =0x01;
117 struct iovec ioVec[iovMax];
XrdSysTrace(const char *pfx, XrdSysLogger *logp=0, int tf=0)
XrdSysTrace & Beg(const char *usr=0, const char *epn=0, const char *txt=0)
void(* msgCB_t)(const char *tid, const char *msg, bool dbgmsg)
XrdSysTrace & operator<<(bool val)
XrdSysTrace & operator<<(float val)
XrdSysTrace & operator<<(double val)
XrdSysTrace & operator<<(long double val)
XrdSysTrace & operator<<(Xrd::Fmt val)
void SetLogger(XrdSysLogger *logp)