27 class ROSOutStreamBuffer :
public std::stringbuf
40 explicit ROSOutStreamBuffer(Type type)
46 std::string log = str();
47 if (!log.empty() && log.back() ==
'\n')
73 ROSOutStreamBuffer debug_buf(ROSOutStreamBuffer::LOG_DEBUG);
74 ROSOutStreamBuffer info_buf(ROSOutStreamBuffer::LOG_INFO);
75 ROSOutStreamBuffer warn_buf(ROSOutStreamBuffer::LOG_WARN);
76 ROSOutStreamBuffer error_buf(ROSOutStreamBuffer::LOG_ERROR);
77 ROSOutStreamBuffer fatal_buf(ROSOutStreamBuffer::LOG_FATAL);
78 std::ostream debug_logger(&debug_buf);
79 std::ostream info_logger(&info_buf);
80 std::ostream warn_logger(&warn_buf);
81 std::ostream error_logger(&error_buf);
82 std::ostream fatal_logger(&fatal_buf);
void setErrorLogger(std::ostream *l)
void setInfoLogger(std::ostream *l)
void setDebugLogger(std::ostream *l)
void setWarnLogger(std::ostream *l)
void setFatalLogger(std::ostream *l)