Go to the documentation of this file. 1 #ifndef _XRDCMS_TRACE_H
2 #define _XRDCMS_TRACE_H
18 #define TRACE_ALL 0xffff
19 #define TRACE_Debug 0x0001
20 #define TRACE_Stage 0x0002
21 #define TRACE_Defer 0x0004
22 #define TRACE_Forward 0x0008
23 #define TRACE_Redirect 0x0010
24 #define TRACE_Files 0x0020
30 #define QTRACE(act) Trace.What & TRACE_ ## act
32 #define DEBUGR(y) if (Trace.What & TRACE_Debug) \
33 {Trace.Beg(epname, Arg.Ident); cerr <<y; Trace.End();}
35 #define DEBUG(y) if (Trace.What & TRACE_Debug) TRACEX(y)
37 #define TRACE(x,y) if (Trace.What & TRACE_ ## x) TRACEX(y)
39 #define TRACER(x,y) if (Trace.What & TRACE_ ## x) \
40 {Trace.Beg(epname, Arg.Ident); cerr <<y; Trace.End();}
42 #define TRACEX(y) {Trace.Beg(0,epname); cerr <<y; Trace.End();}
44 #define EPNAME(x) static const char *epname = x;