22 #ifndef UTILIB_LOG_HPP_
23 #define UTILIB_LOG_HPP_
167 std::ostringstream&
writeReport(LogLevel level = logINFO);
173 static std::shared_ptr<std::ostream>
getStream();
179 static void setStream(std::shared_ptr<std::ostream> pStream);
198 static void writeOutput(
const std::string& msg);
204 static LogLevel reportingLevel_;
209 static std::shared_ptr<std::ostream> pStream_;
213 std::ostringstream buffer_;
223 if (level > UtilLib::Log::getReportingLevel() || !UtilLib::Log::getStream()) ; \
224 else UtilLib::Log().writeReport(level)
static LogLevel getReportingLevel()
class for logging reports. The usage of this log class is described on page The Log utilities provide...
Log & operator=(const Log &)=delete
static void setStream(std::shared_ptr< std::ostream > pStream)
static void setReportingLevel(LogLevel level)
std::ostringstream & writeReport(LogLevel level=logINFO)
static std::shared_ptr< std::ostream > getStream()