Fireworks
Core
interface
fwLog.h
Go to the documentation of this file.
1
#ifndef Fireworks_Core_fwLog_h
2
#define Fireworks_Core_fwLog_h
3
// -*- C++ -*-
4
//
5
// Package: Core
6
// Class : fwLog
7
//
23
//
24
// Original Author: Chris Jones
25
// Created: Tue Dec 8 23:10:04 CST 2009
26
//
27
28
// system include files
29
#include <iostream>
30
31
// user include files
32
33
// forward declarations
34
namespace
fwlog
{
35
enum
LogLevel
{
kDebug
,
kInfo
,
kWarning
,
kError
};
36
37
const
char
*
levelName
(
LogLevel
);
38
std::ostream&
logger
();
39
void
setLogger
(std::ostream*);
40
41
LogLevel
presentLogLevel
();
42
void
setPresentLogLevel
(
LogLevel
);
43
}
// namespace fwlog
44
45
#define fwLog(_level_) \
46
(fwlog::presentLogLevel() > _level_) ? fwlog::logger() : fwlog::logger() << fwlog::levelName(_level_) << ": "
47
48
#endif
fwlog::setLogger
void setLogger(std::ostream *)
Definition:
fwLog.cc:38
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::kWarning
Definition:
fwLog.h:35
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::kDebug
Definition:
fwLog.h:35
fwlog::kError
Definition:
fwLog.h:35
Generated for CMSSW Reference Manual by
1.8.16