10#ifndef UTIL_LOGGING_HEADER
11#define UTIL_LOGGING_HEADER
43 void set_max_level (
LogLevel max_level);
45 std::ostream& log (
LogLevel log_level)
const;
46 std::ostream& error (
void)
const;
47 std::ostream& warning (
void)
const;
48 std::ostream& info (
void)
const;
49 std::ostream& verbose (
void)
const;
50 std::ostream& debug (
void)
const;
61Logging::NullStream::operator<< (T
const& )
67Logging::Logging (
void)
74 : max_level(max_level)
81 this->max_level = max_level;
87 if (log_level > this->max_level)
88 return const_cast<NullStream&
>(this->nullstream);
89 return (log_level ==
LOG_ERROR) ? std::cerr : std::cout;
std::ostream & info(void) const
std::ostream & debug(void) const
std::ostream & warning(void) const
std::ostream & error(void) const
std::ostream & verbose(void) const
std::ostream & log(LogLevel log_level) const
void set_max_level(LogLevel max_level)
NullStream(NullStream const &)=delete
#define UTIL_NAMESPACE_BEGIN
#define UTIL_NAMESPACE_END