CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
Logger Class Reference

#include <Logger.h>

Public Member Functions

template<typename STDTYPE >
void debug (STDTYPE const &msg) const
 
void dqmthrow (std::string const &msg) const
 
void info (std::string const &msg) const
 
 Logger (std::string const &name, int debug=0)
 
 Logger ()
 
void set (std::string const &name, int debug=0)
 
void warn (std::string const &msg) const
 
virtual ~Logger ()
 

Protected Attributes

int _debug
 
std::string _name
 

Detailed Description

Definition at line 6 of file Logger.h.

Constructor & Destructor Documentation

Logger::Logger ( std::string const &  name,
int  debug = 0 
)
inline

Definition at line 9 of file Logger.h.

9  :
11  {}
int _debug
Definition: Logger.h:54
void debug(STDTYPE const &msg) const
Definition: Logger.h:31
std::string _name
Definition: Logger.h:53
Logger::Logger ( )
inline

Definition at line 12 of file Logger.h.

12 {}
virtual Logger::~Logger ( )
inlinevirtual

Definition at line 13 of file Logger.h.

13 {}

Member Function Documentation

template<typename STDTYPE >
void Logger::debug ( STDTYPE const &  msg) const
inline

Definition at line 31 of file Logger.h.

References _debug, _name, gather_cfg::cout, and mps_alisetup::msg.

Referenced by hcaldqm::DQTask::analyze(), hcaldqm::ContainerProf1D::book(), hcaldqm::ContainerProf2D::book(), hcaldqm::Container2D::book(), hcaldqm::Container1D::book(), hcaldqm::DQModule::DQModule(), hcaldqm::Container1D::load(), and set().

32  {
33  if (_debug==0)
34  return;
35 
36  std::cout << "%MSG" << std::endl;
37  std::cout << "$MSG-d HCALDQM::" << _name << "::" << msg;
38  std::cout << std::endl;
39  }
int _debug
Definition: Logger.h:54
std::string _name
Definition: Logger.h:53
void Logger::dqmthrow ( std::string const &  msg) const
inline
void Logger::info ( std::string const &  msg) const
inline

Definition at line 24 of file Logger.h.

References _debug, _name, and mps_alisetup::msg.

25  {
26  if (_debug==0)
27  return;
28  edm::LogInfo("HCALDQM") << _name << "::" << msg;
29  }
int _debug
Definition: Logger.h:54
std::string _name
Definition: Logger.h:53
void Logger::set ( std::string const &  name,
int  debug = 0 
)
inline

Definition at line 41 of file Logger.h.

References _debug, _name, debug(), and dataset::name.

Referenced by hcaldqm::DQModule::DQModule(), and hcaldqm::Container::initialize().

42  {
43  _name = name;
44  _debug = debug;
45 
46  if (debug==0)
47  return;
48 
49  this->debug("Setting up Logger for " + _name);
50  }
int _debug
Definition: Logger.h:54
void debug(STDTYPE const &msg) const
Definition: Logger.h:31
std::string _name
Definition: Logger.h:53
void Logger::warn ( std::string const &  msg) const
inline

Definition at line 20 of file Logger.h.

References _name, and mps_alisetup::msg.

Referenced by hcaldqm::DQTask::_getCalibType().

21  {
22  edm::LogWarning("HCALDQM") << _name << "::" << msg;
23  }
std::string _name
Definition: Logger.h:53

Member Data Documentation

int Logger::_debug
protected
std::string Logger::_name
protected