30 #ifndef CORE_LOGGING_LOG_H
31 #define CORE_LOGGING_LOG_H
36 #include <boost/lexical_cast.hpp>
68 static Log&
get(
const std::string&
name);
75 void stream(
const std::string& msg);
76 void stream(
double x);
79 boost::shared_ptr<class LogStreamImpl> impl_;
86 void setVerbose(
bool v);
92 explicit Log(
const std::string&
name);
95 Log& operator=(
const Log&);
100 boost::shared_ptr<class LogImpl> impl_;
107 template <
typename T>
110 return log << boost::lexical_cast<std::string>(t);
120 #define LOG_DEBUG(str) SCIRun::Core::Logging::Log::get() << SCIRun::Core::Logging::DEBUG_LOG << str << std::endl
122 #define LOG_DEBUG(str)
125 #define LOG_DEBUG_TO(log, str) log << SCIRun::Core::Logging::DEBUG_LOG << str << std::endl
#define msg(m)
Definition: PiecewiseInterp.h:55
LogLevel
Definition: Log.h:51
#define SCISHARE
Definition: share.h:39
const char * name[]
Definition: BoostGraphExampleTests.cc:87
v
Definition: readAllFields.py:42
SCISHARE Log::Stream & operator<<(Log &log, LogLevel level)
Definition: Log.cc:212
friend class Stream
Definition: Log.h:99