test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 35 of file fwLog.h.

35  {
36  kDebug,
37  kInfo,
38  kWarning,
39  kError
40  };

Function Documentation

const char * fwlog::levelName ( LogLevel  iLevel)

Definition at line 34 of file fwLog.cc.

References s_levelNames.

Referenced by MisalignmentScenarioBuilder::decodeMovements_(), and LXXXCorrectorImplMaker::make().

34  {
35  return s_levelNames[iLevel];
36 }
const char *const s_levelNames[]
Definition: fwLog.cc:32
std::ostream & fwlog::logger ( )

Definition at line 40 of file fwLog.cc.

References s_logger.

40  {
41  return *s_logger;
42 }
std::ostream * s_logger
Definition: fwLog.cc:38
LogLevel fwlog::presentLogLevel ( )

Definition at line 52 of file fwLog.cc.

References s_presentLevel.

Referenced by CmsShowNavigator::goTo(), CmsShowNavigator::setCurrentFile(), and CmsShowNavigator::updateFileFilters().

52  {
53  return s_presentLevel;
54 }
LogLevel s_presentLevel
Definition: fwLog.cc:30
void fwlog::setLogger ( std::ostream *  iNewLogger)

Definition at line 44 of file fwLog.cc.

References gather_cfg::cout, and s_logger.

44  {
45  if (0==iNewLogger) {
47  } else {
48  s_logger=iNewLogger;
49  }
50 }
std::ostream * s_logger
Definition: fwLog.cc:38
tuple cout
Definition: gather_cfg.py:145
void fwlog::setPresentLogLevel ( LogLevel  iLevel)

Definition at line 55 of file fwLog.cc.

References s_presentLevel.

Referenced by CmsShowMain::CmsShowMain().

55  {
56  s_presentLevel=iLevel;
57 }
LogLevel s_presentLevel
Definition: fwLog.cc:30

Variable Documentation

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

Definition at line 32 of file fwLog.cc.

Referenced by levelName().

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

Definition at line 38 of file fwLog.cc.

Referenced by logger(), and setLogger().

LogLevel fwlog::s_presentLevel = kInfo

Definition at line 30 of file fwLog.cc.

Referenced by presentLogLevel(), and setPresentLogLevel().