XrdSecTrace.hh

Go to the documentation of this file.
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: XrdSecTrace.hh 32231 2010-02-05 18:24:46Z ganis $
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

Generated on Tue Jul 5 14:46:58 2011 for ROOT_528-00b_version by  doxygen 1.5.1