Introduction
This library provides convenient access to the highly configurable and complex logging framework Boost.Log. It offers preconfigured severity levels, logging macros and thread safe logger classes.
Synopsis:
auto cout_sink = scl::add_console_log(std::cout);
auto cerr_sink = scl::add_console_log(std::cerr);
auto formatter = scl::parse_formatter("[%TimeStamp%] [%Severity%] [%ProcessID% %ThreadID%] [%Channel%]: %Message%"));
scl::Logger logger{ scl::keywords::channel =
"MyChannel" };
{
}
#define LOG_WARNING(logger)
#define LOG_ERROR(logger)
#define LOG_DEBUG(logger)
#define LOG_CRITICAL(logger)
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
SEVERITYCHANNELLOGGING_EXPORT void initialize()
boost::log::sources::severity_channel_logger_mt< SeverityLevel > ThreadSafeLogger
boost::log::sources::severity_channel_logger< SeverityLevel > Logger