11 #ifndef CXLOGMESSAGEFILTER_H 12 #define CXLOGMESSAGEFILTER_H 14 #include "cxResourceExport.h" 26 static LOG_SEVERITY level2severity(MESSAGE_LEVEL level)
45 default:
return msCOUNT;
56 virtual MessageFilterPtr
clone() = 0;
66 if (!isActiveChannel(msg))
68 if (!isActiveSeverity(msg))
73 virtual MessageFilterPtr
clone()
82 return severity <= mLowestSeverity;
87 if (mChannel ==
"all")
105 mLowestSeverity = std::max(mLowestSeverity, severity);
109 mLowestSeverity = severity;
113 return mLowestSeverity;
118 LOG_SEVERITY mLowestSeverity;
124 #endif // CXLOGMESSAGEFILTER_H void setActiveChannel(QString uid)
bool isActiveChannel(const Message &msg) const
virtual MessageFilterPtr clone()
boost::shared_ptr< class MessageFilter > MessageFilterPtr
virtual MessageFilterPtr clone()=0
void setLowestSeverity(LOG_SEVERITY severity)
LOG_SEVERITY getLowestSeverity() const
void activateSeverity(LOG_SEVERITY severity)
bool isActiveSeverity(const Message &msg) const
MESSAGE_LEVEL getMessageLevel() const
The category of the message.
virtual bool operator()(const Message &msg) const
virtual bool operator()(const Message &msg) const =0
Namespace for all CustusX production code.