/// A function to convert debug level string names numerical values
Type value(std::string const & val);
+ /// Check the validity of debug level names
+ /// \return the first bad level name
+ std::string badValue(std::string const & val);
+
/// A function to convert index of level to their numerical value
Type value(int val);
void setSecondStream(std::ostream * os)
{ second_enabled_ = (second_stream_ = os); }
/// Is the second stream is enabled?
- bool secondEnabled() { return second_enabled_; }
+ bool secondEnabled() const { return second_enabled_; }
/// Sets the debug level
void setLevel(Debug::Type t) { dt_ = t; }