xrootd
|
00001 #ifndef ___SEC_TRACE_H___ 00002 #define ___SEC_TRACE_H___ 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d S e c T r a c e . h h */ 00006 /* */ 00007 /* (C) 2003 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC03-76-SFO0515 with the Deprtment of Energy */ 00011 /******************************************************************************/ 00012 00013 // $Id$ 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 // Trace flags 00041 // 00042 #define TRACE_ALL 0x000f 00043 #define TRACE_Authenxx 0x0007 00044 #define TRACE_Authen 0x0004 00045 #define TRACE_Debug 0x0001 00046 00047 #endif