84 I_ASSIGN(m_minPriorityAttrPtr,
"MinCategory",
"Minimal category of message to print it out:\n *1-Information\n *2-Warning\n *3-Error\n *4-Critical",
true, 0);
85 I_ASSIGN(m_isDotEnabledAttrPtr,
"ShowDots",
"If it's true, dot will be shown for each ignored message",
true,
false);
86 I_ASSIGN(m_useCategoryAttrPtr,
"UseCategory",
"Use error category for the messsages (e.g warning or error)",
true,
true);
87 I_ASSIGN(m_useCodeAttrPtr,
"UseCode",
"Use error code for the messsages",
true,
true);
88 I_ASSIGN(m_useTimeStampAttrPtr,
"UseTimeStamp",
"Use time stamp for the messsages",
true,
false);
89 I_ASSIGN(m_timeFormatAttrPtr,
"TimeFormat",
"Format used for timestamp output",
false,
"dd.MM hh:mm:ss:zzz");
101 int messageCategory = -1,
130 I_ATTR(
int, m_minPriorityAttrPtr);
131 I_ATTR(
bool, m_isDotEnabledAttrPtr);
132 I_ATTR(
bool, m_useCategoryAttrPtr);
133 I_ATTR(
bool, m_useCodeAttrPtr);
134 I_ATTR(
bool, m_useTimeStampAttrPtr);
135 I_ATTR(QByteArray, m_timeFormatAttrPtr);
137 bool m_isLastDotShown;
Base implementation for logging components using Qt event queue.
Base class for stream-based logging components.
virtual void WriteMessageToStream(const istd::IInformationProvider &message)
Write formatted message to the output stream.
virtual QString GenerateMessageText(const istd::IInformationProvider &message) const
Generate formatted message text for the output.
istd::IInformationProvider::InformationCategory GetWorseCategory() const
Get worse category (highest code) of all outputed messages.
virtual void WriteMessageToLog(const MessagePtr &messagePtr) override
Abstract method called to process a message.
virtual bool IsMessageSupported(int messageCategory=-1, int messageId=-1, const istd::IInformationProvider *messagePtr=NULL) const override
Check if a message is supported.
ilog::CLogCompBase BaseClass
Base class typedef.
virtual void OnComponentDestroyed() override
virtual void WriteText(const QString &text, istd::IInformationProvider::InformationCategory category)=0
Write a text line to the output stream.
Shared ownership smart pointer for interface types.
This namespace contains implementations for the logging functionality.