7 #include <glog/logging.h> 8 #include <boost/fiber/buffered_channel.hpp> 10 #include "util/asio/io_context.h" 11 #include "util/fibers/event_count.h" 21 void Cancel()
override;
27 const char* full_filename;
28 const char* base_filename;
29 google::LogSeverity severity;
34 ::boost::fibers::buffered_channel<Item> msg_q_;
36 unsigned lost_messages_ = 0;
38 virtual bool ShouldIgnore(google::LogSeverity severity,
const char* full_filename,
int line) {
43 virtual void HandleItem(
const Item& item) = 0;
47 void send(google::LogSeverity severity,
const char* full_filename,
const char* base_filename,
48 int line,
const struct ::tm* tm_time,
const char* message,
size_t message_len)
override;
50 void WaitTillSent()
override;
52 std::atomic_bool run_started_{
false};
53 fibers_ext::EventCount ec_;