14 #ifndef LOGGER_STREAM_HPP
15 #define LOGGER_STREAM_HPP
25 typedef std::function<std::string(const std::string&)>
Loggable;
46 void setPrefix(
const std::string& prefix_) {prefix=prefix_;}
49 void setSuffix(
const std::string& suffix_) {suffix=suffix_;}
54 void setSource(
const std::string& source_) {source=source_;}
59 std::string
logMsg(
bool isReset=
true);
60 std::ostream&
log(
unsigned int logPriority);
65 std::ostream&
put(
const std::string&);
71 std::stringbuf logBuf;
72 std::basic_streambuf<char>* pBuf;
78 unsigned int logPriority;
81 typedef std::ostream inherited;
85 std::ostream&
endl(std::ostream& os);
86 std::ostream&
flush(std::ostream& os);
87 LoggerStream&
operator<<(LoggerStream& os,
const std::string& rhs);
88 LoggerStream&
operator<<(LoggerStream& os,
const char* rhs);
93 #endif // LOGGER_STREAM_HPP