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

◆ LogLevel

Enumerator
kDebug 
kInfo 
kWarning 
kError 

Definition at line 35 of file fwLog.h.

Function Documentation

◆ levelName()

const char * fwlog::levelName ( LogLevel  iLevel)

◆ logger()

std::ostream & fwlog::logger ( )

Definition at line 36 of file fwLog.cc.

36 { return *s_logger; }

References s_logger.

Referenced by cscdqm::Configuration::printStats().

◆ presentLogLevel()

LogLevel fwlog::presentLogLevel ( )

◆ setLogger()

void fwlog::setLogger ( std::ostream *  iNewLogger)

Definition at line 38 of file fwLog.cc.

38  {
39  if (nullptr == iNewLogger) {
41  } else {
42  s_logger = iNewLogger;
43  }
44  }

References gather_cfg::cout, and s_logger.

◆ setPresentLogLevel()

void fwlog::setPresentLogLevel ( LogLevel  iLevel)

Definition at line 47 of file fwLog.cc.

47 { s_presentLevel = iLevel; }

References s_presentLevel.

Referenced by CmsShowMain::CmsShowMain().

Variable Documentation

◆ s_levelNames

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

Definition at line 30 of file fwLog.cc.

Referenced by levelName().

◆ s_logger

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

Definition at line 34 of file fwLog.cc.

Referenced by logger(), and setLogger().

◆ s_presentLevel

LogLevel fwlog::s_presentLevel = kInfo

Definition at line 28 of file fwLog.cc.

Referenced by presentLogLevel(), and setPresentLogLevel().

gather_cfg.cout
cout
Definition: gather_cfg.py:144
fwlog::s_logger
std::ostream * s_logger
Definition: fwLog.cc:34
fwlog::s_levelNames
const char *const s_levelNames[]
Definition: fwLog.cc:30
fwlog::kWarning
Definition: fwLog.h:35
fwlog::kInfo
Definition: fwLog.h:35
fwlog::kDebug
Definition: fwLog.h:35
fwlog::kError
Definition: fwLog.h:35
fwlog::s_presentLevel
LogLevel s_presentLevel
Definition: fwLog.cc:28