test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
40  };
41 
42  const char* levelName(LogLevel);
43  std::ostream& logger();
44  void setLogger(std::ostream*);
45 
48 }
49 
50 #define fwLog(_level_) \
51  (fwlog::presentLogLevel() > _level_) ? fwlog::logger() : fwlog::logger()<< fwlog::levelName(_level_)<<": "
52 
53 #endif
std::ostream & logger()
Definition: fwLog.cc:40
LogLevel presentLogLevel()
Definition: fwLog.cc:52
LogLevel
Definition: fwLog.h:35
const char * levelName(LogLevel)
Definition: fwLog.cc:34
void setLogger(std::ostream *)
Definition: fwLog.cc:44
void setPresentLogLevel(LogLevel)
Definition: fwLog.cc:55