XrdMonSndDebug.cc

Go to the documentation of this file.
00001 /*****************************************************************************/
00002 /*                                                                           */
00003 /*                            XrdMonSndDebug.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: XrdMonSndDebug.cc 22437 2008-03-04 14:35:16Z rdm $
00012 
00013 #include "XrdMon/XrdMonSndDebug.hh"
00014 #include "XrdMon/XrdMonCommon.hh"
00015 #include <stdlib.h> /* getenv */
00016 #include <string.h>
00017 
00018 XrdMonSndDebug::Verbosity XrdMonSndDebug::_verbose = XrdMonSndDebug::Generator;
00019 
00020 void
00021 XrdMonSndDebug::initialize()
00022 {
00023     const char* env = getenv("DEBUG");
00024     if ( 0 == env ) {
00025         return;
00026     }
00027     if ( 0 == strcmp(env, "all") ) {
00028         _verbose = XrdMonSndDebug::All;
00029         return;
00030     }
00031     _verbose = (XrdMonSndDebug::Verbosity) atoi(env);
00032 }

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