xrootd
XrdMonCtrDebug.hh
Go to the documentation of this file.
1 /*****************************************************************************/
2 /* */
3 /* XrdMonCtrDebug.hh */
4 /* */
5 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */
6 /* All Rights Reserved */
7 /* Produced by Jacek Becla for Stanford University under contract */
8 /* DE-AC02-76SF00515 with the Department of Energy */
9 /*****************************************************************************/
10 
11 // $Id$
12 
13 #ifndef XRDMONCTRDEBUG_HH
14 #define XRDMONCTRDEBUG_HH
15 
16 #include "XrdSys/XrdSysPthread.hh"
17 
18 // class responsible for handling log/debug/error messages
19 
21 public:
22  enum Verbosity {
23  Quiet = 0x0000, // No printing
24 
25  Receiving = 0x0001, // related to receiving data from xrootd
26  PathDec = 0x0002, // for path decoder, use with PathCod to compare
27  DataDec = 0x0004, // for data decoder, use with DataCod to compare
28  IdDec = 0x0008, // for id decoder, use with IdCod to compare
29  Sink = 0x0010, // related to sink
30  // =======
31  All = 0xFFFF // Everything
32  };
33 
34  static void initialize();
35 
36  inline static bool verbose(Verbosity val) {
37  return _verbose & val;
38  }
39 
41 
42 private:
44 };
45 
46 #endif /* XRDMONCTRDEBUG_HH */