CMS 3D CMS Logo

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

#include <CondCore/CondDB/interface/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

Description: utility for collecting log information and store them into the Condition DB.

Definition at line 6 of file Logger.h.

Constructor & Destructor Documentation

◆ Logger() [1/2]

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

Definition at line 8 of file Logger.h.

8 : _name(name), _debug(debug) {}
int _debug
Definition: Logger.h:41
void debug(STDTYPE const &msg) const
Definition: Logger.h:20
std::string _name
Definition: Logger.h:40

◆ Logger() [2/2]

Logger::Logger ( )
inline

Definition at line 9 of file Logger.h.

9 {}

◆ ~Logger()

virtual Logger::~Logger ( )
inlinevirtual

Definition at line 10 of file Logger.h.

10 {}

Member Function Documentation

◆ debug()

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

Definition at line 20 of file Logger.h.

References _debug, _name, gather_cfg::cout, and mps_check::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().

20  {
21  if (_debug == 0)
22  return;
23 
24  std::cout << "%MSG" << std::endl;
25  std::cout << "$MSG-d HCALDQM::" << _name << "::" << msg;
26  std::cout << std::endl;
27  }
int _debug
Definition: Logger.h:41
std::string _name
Definition: Logger.h:40
tuple msg
Definition: mps_check.py:285

◆ dqmthrow()

void Logger::dqmthrow ( std::string const &  msg) const
inline

◆ info()

void Logger::info ( std::string const &  msg) const
inline

Definition at line 14 of file Logger.h.

References _debug, _name, and mps_check::msg.

14  {
15  if (_debug == 0)
16  return;
17  edm::LogInfo("HCALDQM") << _name << "::" << msg;
18  }
int _debug
Definition: Logger.h:41
Log< level::Info, false > LogInfo
std::string _name
Definition: Logger.h:40
tuple msg
Definition: mps_check.py:285

◆ set()

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

Definition at line 29 of file Logger.h.

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

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

29  {
30  _name = name;
31  _debug = debug;
32 
33  if (debug == 0)
34  return;
35 
36  this->debug("Setting up Logger for " + _name);
37  }
int _debug
Definition: Logger.h:41
void debug(STDTYPE const &msg) const
Definition: Logger.h:20
std::string _name
Definition: Logger.h:40

◆ warn()

void Logger::warn ( std::string const &  msg) const
inline

Definition at line 13 of file Logger.h.

References _name, and mps_check::msg.

Referenced by hcaldqm::DQTask::_getCalibType(), and LEDTask::_process().

13 { edm::LogWarning("HCALDQM") << _name << "::" << msg; }
std::string _name
Definition: Logger.h:40
tuple msg
Definition: mps_check.py:285
Log< level::Warning, false > LogWarning

Member Data Documentation

◆ _debug

int Logger::_debug
protected

◆ _name

std::string Logger::_name
protected

Definition at line 40 of file Logger.h.

Referenced by plotting.Subtract::__str__(), plotting.Transform::__str__(), plotting.FakeDuplicate::__str__(), plotting.CutEfficiency::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), trackingPlots.TimePerEventPlot::__str__(), trackingPlots.TimePerTrackPlot::__str__(), SequenceTypes.SequencePlaceholder::_clonesequence(), trackingPlots.TimePerEventPlot::_create(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), SequenceTypes.SequencePlaceholder::copy(), SequenceTypes._TaskBasePlaceholder::copy(), plotting.Subtract::create(), plotting.Transform::create(), plotting.FakeDuplicate::create(), plotting.CutEfficiency::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), trackingPlots.TimePerTrackPlot::create(), plotting.Plot::create(), debug(), dqmthrow(), plotting.PlotGroup::draw(), SequenceTypes.SequencePlaceholder::dumpPython(), SequenceTypes._TaskBasePlaceholder::dumpPython(), SequenceTypes.SequencePlaceholder::dumpSequenceConfig(), SequenceTypes.SequencePlaceholder::dumpSequencePython(), SequenceTypes._TaskBasePlaceholder::dumpSequencePython(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), info(), SequenceTypes.SequencePlaceholder::insertInto(), SequenceTypes._TaskBasePlaceholder::insertInto(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), plotting.PlotterItem::readDirs(), plotting.PlotGroup::remove(), SequenceTypes.SequencePlaceholder::resolve(), SequenceTypes._TaskBasePlaceholder::resolve(), set(), plotting.Plot::setName(), and warn().