24 #include "glog/log_severity.h" 31 const char* GetBasename(
const char* filepath) {
32 const char* base = std::strrchr(filepath,
'/');
33 return base ? (base + 1) : filepath;
42 const char*
const filename,
43 const char*
const base_filename,
const int line,
44 const struct std::tm*
const tm_time,
45 const char*
const message,
46 const size_t message_len) {
47 const std::string message_string = ::google::LogSink::ToString(
48 severity, GetBasename(filename), line, tm_time, message, message_len);
50 case ::google::GLOG_INFO:
54 case ::google::GLOG_WARNING:
58 case ::google::GLOG_ERROR:
62 case ::google::GLOG_FATAL:
72 std::this_thread::sleep_for(std::chrono::milliseconds(1000));
#define ROS_FATAL_STREAM(args)
void send(::google::LogSeverity severity, const char *filename, const char *base_filename, int line, const struct std::tm *tm_time, const char *message, size_t message_len) override
#define ROS_WARN_STREAM(args)
#define ROS_INFO_STREAM(args)
~ScopedRosLogSink() override
#define ROS_ERROR_STREAM(args)
void WaitTillSent() override