1 #ifndef _KIPR_LOG_LOG_HPP_
2 #define _KIPR_LOG_LOG_HPP_
60 std::unique_ptr<std::ostringstream> stream_;
66 typedef std::shared_ptr<Log>
Ptr;
69 Log(
const std::string &module);
74 void log(
const Level level,
const std::string &message);
82 inline void fatal(
const std::string &message)
97 inline void error(
const std::string &message)
112 inline void warning(
const std::string &message)
127 inline void info(
const std::string &message)
142 inline void debug(
const std::string &message)
157 inline void verbose(
const std::string &message)
168 Log(
const Log &) =
delete;
182 return std::hash<unsigned>()(
static_cast<unsigned>(level));
LogStream(LogStream &&rhs)
void operator<<(const Flush &_)
Definition: log.hpp:41
LogStream(Log &log, const Level level)
LogStream fatal()
Definition: log.hpp:87
void info(const std::string &message)
Definition: log.hpp:127
LogStream log(const Level level)
std::shared_ptr< Log > Ptr
Definition: log.hpp:66
LogStream error()
Definition: log.hpp:102
void fatal(const std::string &message)
Definition: log.hpp:82
void debug(const std::string &message)
Definition: log.hpp:142
void log(const Level level, const std::string &message, const Location &location)
void verbose(const std::string &message, const Location &location)
Definition: log.hpp:152
Log(const std::string &module)
void debug(const std::string &message, const Location &location)
Definition: log.hpp:137
void error(const std::string &message, const Location &location)
Definition: log.hpp:92
LogStream warning()
Definition: log.hpp:117
void error(const std::string &message)
Definition: log.hpp:97
LogStream verbose()
Definition: log.hpp:162
std::shared_ptr< const Log > ConstPtr
Definition: log.hpp:67
LogStream debug()
Definition: log.hpp:147
void warning(const std::string &message)
Definition: log.hpp:112
void fatal(const std::string &message, const Location &location)
Definition: log.hpp:77
void log(const Level level, const std::string &message)
void verbose(const std::string &message)
Definition: log.hpp:157
void info(const std::string &message, const Location &location)
Definition: log.hpp:122
LogStream info()
Definition: log.hpp:132
void warning(const std::string &message, const Location &location)
Definition: log.hpp:107
Level
Definition: log.hpp:18
unsigned column
Definition: log.hpp:31
unsigned line
Definition: log.hpp:30
std::string file
Definition: log.hpp:29
size_t operator()(const kipr::log::Level &level) const
Definition: log.hpp:180