CMS 3D CMS Logo

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 {
36 
37  const char* levelName(LogLevel);
38  std::ostream& logger();
39  void setLogger(std::ostream*);
40 
43 } // namespace fwlog
44 
45 #define fwLog(_level_) \
46  (fwlog::presentLogLevel() > _level_) ? fwlog::logger() : fwlog::logger() << fwlog::levelName(_level_) << ": "
47 
48 #endif
std::ostream & logger()
Definition: fwLog.cc:36
Definition: fwLog.h:34
LogLevel presentLogLevel()
Definition: fwLog.cc:46
LogLevel
Definition: fwLog.h:35
const char * levelName(LogLevel)
Definition: fwLog.cc:32
void setLogger(std::ostream *)
Definition: fwLog.cc:38
void setPresentLogLevel(LogLevel)
Definition: fwLog.cc:47