#include <senf/Utils/Logger/Config.hh>
This is a template meta-function which will check, whether logging to the given combination of parameters Stream, Area and Level is compile-time enabled. The logging might still be disabled at runtime.
if (senf::log::Enabled<senf::log::Debug, senf::log::DefaultArea, senf::log::VERBOSE>::value) { // ... }
Since the value member is a compile time constant, the compiler will completely optimize away this block of code when logging is disabled.
Definition at line 214 of file Config.hh.
Static Public Attributes |
|
static const bool | value |
const bool senf::log::Enabled< Stream, Area, Level >::value | ||||
[static] | ||||
Initial value:
( (Level::value == NONE::value ? Stream::defaultLevel::value : Level::value) >= detail::Config<Stream,Area>::compileLimit::value )