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 // $Id: fwLog.h,v 1.3 2009/12/12 20:42:29 amraktad Exp $
27 //
28 
29 // system include files
30 #include <iostream>
31 
32 // user include files
33 
34 // forward declarations
35 namespace fwlog {
36  enum LogLevel {
41  };
42 
43  const char* levelName(LogLevel);
44  std::ostream& logger();
45  void setLogger(std::ostream*);
46 
49 }
50 
51 #define fwLog(_level_) \
52  (fwlog::presentLogLevel() > _level_) ? fwlog::logger() : fwlog::logger()<< fwlog::levelName(_level_)<<": "
53 
54 #endif
std::ostream & logger()
Definition: fwLog.cc:41
LogLevel presentLogLevel()
Definition: fwLog.cc:53
LogLevel
Definition: fwLog.h:36
const char * levelName(LogLevel)
Definition: fwLog.cc:35
void setLogger(std::ostream *)
Definition: fwLog.cc:45
void setPresentLogLevel(LogLevel)
Definition: fwLog.cc:56