Fireworks
Core
src
fwLog.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Core
4
// Class : fwLog
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Chris Jones
10
// Created: Tue Dec 8 23:10:10 CST 2009
11
//
12
13
// system include files
14
15
// user include files
16
#include "
Fireworks/Core/interface/fwLog.h
"
17
18
//
19
// constants, enums and typedefs
20
//
21
22
//
23
// static data member definitions
24
//
25
26
namespace
fwlog
{
27
28
LogLevel
s_presentLevel
=
kInfo
;
29
30
const
char
*
const
s_levelNames
[] = {
"Debug"
,
"Info"
,
"Warning"
,
"Error"
};
31
32
const
char
*
levelName
(
LogLevel
iLevel) {
return
s_levelNames
[iLevel]; }
33
34
std::ostream*
s_logger
= &
std::cerr
;
35
36
std::ostream&
logger
() {
return
*
s_logger
; }
37
38
void
setLogger
(std::ostream* iNewLogger) {
39
if
(
nullptr
== iNewLogger) {
40
s_logger
= &
std::cout
;
41
}
else
{
42
s_logger
= iNewLogger;
43
}
44
}
45
46
LogLevel
presentLogLevel
() {
return
s_presentLevel
; }
47
void
setPresentLogLevel
(
LogLevel
iLevel) {
s_presentLevel
= iLevel; }
48
49
}
// namespace fwlog
fwlog::setLogger
void setLogger(std::ostream *)
Definition:
fwLog.cc:38
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
fwlog::logger
std::ostream & logger()
Definition:
fwLog.cc:36
fwlog::presentLogLevel
LogLevel presentLogLevel()
Definition:
fwLog.cc:46
fwlog::LogLevel
LogLevel
Definition:
fwLog.h:35
fwlog
Definition:
fwLog.h:34
fwlog::s_logger
std::ostream * s_logger
Definition:
fwLog.cc:34
fwlog::s_levelNames
const char *const s_levelNames[]
Definition:
fwLog.cc:30
beam_dqm_sourceclient-live_cfg.cerr
cerr
Definition:
beam_dqm_sourceclient-live_cfg.py:17
fwLog.h
fwlog::setPresentLogLevel
void setPresentLogLevel(LogLevel)
Definition:
fwLog.cc:47
fwlog::levelName
const char * levelName(LogLevel)
Definition:
fwLog.cc:32
fwlog::kInfo
Definition:
fwLog.h:35
fwlog::s_presentLevel
LogLevel s_presentLevel
Definition:
fwLog.cc:28
Generated for CMSSW Reference Manual by
1.8.16