XrdMonCtrDebug.cc

Go to the documentation of this file.
00001 /*****************************************************************************/
00002 /*                                                                           */
00003 /*                            XrdMonCtrDebug.cc                              */
00004 /*                                                                           */
00005 /* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */
00006 /*                            All Rights Reserved                            */
00007 /*       Produced by Jacek Becla for Stanford University under contract      */
00008 /*              DE-AC02-76SF00515 with the Department of Energy              */
00009 /*****************************************************************************/
00010 
00011 // $Id: XrdMonCtrDebug.cc 24468 2008-06-22 16:47:03Z ganis $
00012 
00013 #include "XrdMon/XrdMonCtrDebug.hh"
00014 #include "XrdMon/XrdMonCommon.hh"
00015 #include "XrdSys/XrdSysHeaders.hh"
00016 
00017 #include <stdlib.h> /* getenv */
00018 
00019 #include <fstream>
00020 #include <string>
00021 
00022 XrdMonCtrDebug::Verbosity XrdMonCtrDebug::_verbose = XrdMonCtrDebug::Receiving;
00023 XrdSysMutex      XrdMonCtrDebug::_mutex;
00024 
00025 void
00026 XrdMonCtrDebug::initialize()
00027 {
00028     const char* env = getenv("DEBUG");
00029     if ( 0 == env ) {
00030         return;
00031     }
00032     if ( 0 == strcmp(env, "all") ) {
00033         _verbose = XrdMonCtrDebug::All;
00034         return;
00035     }
00036     _verbose = (XrdMonCtrDebug::Verbosity) atoi(env);
00037 }

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