Tag: boost

Boost syslog to a specific file using syslog sink

问题内容: Is it possible to configure boost log to send logs to a specific file when using the syslog backend on debian9. The following code initializes my logging sink: namespace logging = boost::log; namespace sinks = boost::log::sinks; namespace keywords = boost::log::keywords; using namespace boost::log::sinks::syslog; boost::shared_ptr< logging::core > core = logging::core::get(); boost::shared_ptr< sinks::syslog_backend > backend =