I've compiled and run the syslog example(s) in /lib/log/example in Ubuntu 16.04 with no results in /var/log/syslog. However, I've gotten the identical code to produce expected results on Windows 7. It may be worth noting that I've tried "keywords::use_impl = boost::log::sinks::syslog::native" in the constructor as well with no result. I've also tried it on Ubuntun 14.04 with no results. Is there some change needed in the syslog conf file?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've compiled and run the syslog example(s) in /lib/log/example in Ubuntu 16.04 with no results in /var/log/syslog. However, I've gotten the identical code to produce expected results on Windows 7. It may be worth noting that I've tried "keywords::use_impl = boost::log::sinks::syslog::native" in the constructor as well with no result. I've also tried it on Ubuntun 14.04 with no results. Is there some change needed in the syslog conf file?
Found the solution, as described below.
SOLUTION:
BOOST 1.62.0 doesn't auto-detect native syslog, therefore it needs to be built with BOOST_LOG_USE_NATIVE_SYSLOG.
ALTERNATIVE
By default if native syslog ins't detected, BOOST defaults to UDP. You can also enable UDP in your syslog conf in /etc/rsyslog.conf.
Link to source of solutions: https://svn.boost.org/trac/boost/ticket/12600
Last edit: Adam Kutchak 2016-12-01