Restoring some Boost::log functionality

This commit is contained in:
Bill Somerville 2020-11-13 18:00:23 +00:00
parent 5a9b56bfc0
commit bf01202d25
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
2 changed files with 10 additions and 10 deletions

View File

@ -34,12 +34,12 @@ namespace expr = logging::expressions;
namespace attrs = logging::attributes;
namespace ptime = boost::posix_time;
// BOOST_LOG_GLOBAL_LOGGER_CTOR_ARGS (sys,
// srcs::severity_channel_logger_mt<logging::trivial::severity_level>,
// (keywords::channel = "SYSLOG"));
// BOOST_LOG_GLOBAL_LOGGER_CTOR_ARGS (data,
// srcs::severity_channel_logger_mt<logging::trivial::severity_level>,
// (keywords::channel = "DATALOG"));
BOOST_LOG_GLOBAL_LOGGER_CTOR_ARGS (sys,
srcs::severity_channel_logger_mt<logging::trivial::severity_level>,
(keywords::channel = "SYSLOG"));
BOOST_LOG_GLOBAL_LOGGER_CTOR_ARGS (data,
srcs::severity_channel_logger_mt<logging::trivial::severity_level>,
(keywords::channel = "DATALOG"));
namespace Logger
{

View File

@ -10,10 +10,10 @@
#include <iosfwd>
#include <string>
// BOOST_LOG_GLOBAL_LOGGER (sys,
// boost::log::sources::severity_channel_logger_mt<boost::log::trivial::severity_level>);
// BOOST_LOG_GLOBAL_LOGGER (data,
// boost::log::sources::severity_channel_logger_mt<boost::log::trivial::severity_level>);
BOOST_LOG_GLOBAL_LOGGER (sys,
boost::log::sources::severity_channel_logger_mt<boost::log::trivial::severity_level>);
BOOST_LOG_GLOBAL_LOGGER (data,
boost::log::sources::severity_channel_logger_mt<boost::log::trivial::severity_level>);
namespace Logger
{