00001 #ifndef ___SEC_TRACE_H___
00002 #define ___SEC_TRACE_H___
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "XrdOuc/XrdOucTrace.hh"
00016
00017 #ifndef NODEBUG
00018
00019 #include "XrdSys/XrdSysHeaders.hh"
00020
00021 #define QTRACE(act) SecTrace->What & TRACE_ ## act
00022
00023 #define TRACE(act, x) \
00024 if (QTRACE(act)) \
00025 {SecTrace->Beg(epname,tident); cerr <<x; SecTrace->End();}
00026
00027 #define DEBUG(y) if (QTRACE(Debug)) \
00028 {SecTrace->Beg(epname); cerr <<y; SecTrace->End();}
00029 #define EPNAME(x) static const char *epname = x;
00030
00031 #else
00032
00033 #define TRACE(x, y)
00034 #define QTRACE(x)
00035 #define DEBUG(x)
00036 #define EPNAME(x)
00037
00038 #endif
00039
00040
00041
00042 #define TRACE_ALL 0x000f
00043 #define TRACE_Authenxx 0x0007
00044 #define TRACE_Authen 0x0004
00045 #define TRACE_Debug 0x0001
00046
00047 #endif