9#define DECLARE_LEVEL( NAME ) \
12 static const std::string name( #NAME ); \
19 const std::string&
name( Level lvl ) {
31 static const std::string dummy(
"<unknown>" );
#define DECLARE_LEVEL(NAME)
Helper macro for constructing the function's code.
Definition of message levels and a helper function.
const std::string & name(Level lvl)
Convenience function for translating message levels to strings.