I'm trying to modify my application to use the Boost Log library instead of logging into syslog
. Boost Log severity levels are defined in boost/log/trivial.hpp
, where the most serious level has maximal numeric number (5):
enum severity_level
{
trace,
debug,
info,
warning,
error,
fatal
};
However, the syslog
defines more severity levels, which are actually standardized by the RFC5424 - and most serious level has minimal numeric number (0).
Is it any way to define my own MySeverityLevels
enumeration type (probably close to the RFC5424) and use various Boost Log loggers (severity_logger
, for instance) with this new type, including the filtering by severity level?