32 #ifndef CXLOGMESSAGEFILTER_H 33 #define CXLOGMESSAGEFILTER_H 35 #include "cxResourceExport.h" 48 static LOG_SEVERITY level2severity(MESSAGE_LEVEL level)
67 default:
return msCOUNT;
78 virtual MessageFilterPtr
clone() = 0;
88 if (!isActiveChannel(msg))
90 if (!isActiveSeverity(msg))
95 virtual MessageFilterPtr
clone()
104 return severity <= mLowestSeverity;
109 if (mChannel ==
"all")
127 mLowestSeverity = std::max(mLowestSeverity, severity);
131 mLowestSeverity = severity;
135 return mLowestSeverity;
140 LOG_SEVERITY mLowestSeverity;
146 #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.