【发布时间】:2020-03-29 15:49:57
【问题描述】:
我想准备日志消息并将其存储在某些东西中。
然后将这个东西传递给函数,它将
我需要这个,因为我使用多个记录器将此日志放到多个后端。
我阅读了有关formatting_ostream的信息,但所有示例都显示了
我可以这样做吗:
boost::log::formatting_ostream os << "Request #" << this->GetId() << " for " << mUrl << " has been cancelled by the user at start of execute coroutine." << std::endl;
boost_log_function(mHTTPRequest_LoggingInstance_shared_pointer);
然后:
BOOST_LOG(*loggerChannel_cancelExecute.get()) << os;
【问题讨论】:
标签: boost-log