11 #ifndef CXLOGMESSAGEFILTER_H 12 #define CXLOGMESSAGEFILTER_H 14 #include "cxResourceExport.h" 27 static LOG_SEVERITY level2severity(MESSAGE_LEVEL level)
46 default:
return msCOUNT;
57 virtual MessageFilterPtr
clone() = 0;
67 if (!isActiveChannel(msg))
69 if (!isActiveSeverity(msg))
74 virtual MessageFilterPtr
clone()
83 return severity <= mLowestSeverity;
88 if (mChannel ==
"all")
106 mLowestSeverity = std::max(mLowestSeverity, severity);
110 mLowestSeverity = severity;
114 return mLowestSeverity;
119 LOG_SEVERITY mLowestSeverity;
125 #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.