CMS 3D CMS Logo

Enumerations | Functions | Variables

fwlog Namespace Reference

Enumerations

enum  LogLevel { kDebug, kInfo, kWarning, kError }

Functions

const char * levelName (LogLevel)
std::ostream & logger ()
LogLevel presentLogLevel ()
void setLogger (std::ostream *)
void setPresentLogLevel (LogLevel)

Variables

const char *const s_levelNames [] = { "Debug","Info", "Warning", "Error" }
std::ostream * s_logger = &std::cerr
LogLevel s_presentLevel = kInfo

Enumeration Type Documentation

Enumerator:
kDebug 
kInfo 
kWarning 
kError 

Definition at line 36 of file fwLog.h.


Function Documentation

const char * fwlog::levelName ( LogLevel  iLevel)

Definition at line 35 of file fwLog.cc.

References s_levelNames.

Referenced by MisalignmentScenarioBuilder::decodeMovements_().

                                       {
   return s_levelNames[iLevel];
}
std::ostream & fwlog::logger ( )

Definition at line 41 of file fwLog.cc.

References s_logger.

Referenced by edm::service::ELrecv(), and cscdqm::Configuration::printStats().

                     {
   return *s_logger;
}
LogLevel fwlog::presentLogLevel ( )
void fwlog::setLogger ( std::ostream *  iNewLogger)

Definition at line 45 of file fwLog.cc.

References gather_cfg::cout, and s_logger.

                                       {
   if (0==iNewLogger) {
      s_logger=&std::cout;
   } else {
     s_logger=iNewLogger;
   }
}
void fwlog::setPresentLogLevel ( LogLevel  iLevel)

Definition at line 56 of file fwLog.cc.

References s_presentLevel.

Referenced by CmsShowMain::CmsShowMain().

                                         {
   s_presentLevel=iLevel;
}

Variable Documentation

const char* const fwlog::s_levelNames[] = { "Debug","Info", "Warning", "Error" }

Definition at line 33 of file fwLog.cc.

Referenced by levelName().

std::ostream* fwlog::s_logger = &std::cerr

Definition at line 39 of file fwLog.cc.

Referenced by logger(), and setLogger().

Definition at line 31 of file fwLog.cc.

Referenced by presentLogLevel(), and setPresentLogLevel().