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