Go to the documentation of this file.
6#ifndef ilog_CStreamLogCompBase_included
7#define ilog_CStreamLogCompBase_included
29 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);
30 I_ASSIGN(m_isDotEnabledAttrPtr,
"ShowDots",
"If it's true, dot will be shown for each ignored message",
true,
false);
31 I_ASSIGN(m_useCategoryAttrPtr,
"UseCategory",
"Use error category for the messsages (e.g warning or error)",
true,
true);
32 I_ASSIGN(m_useCodeAttrPtr,
"UseCode",
"Use error code for the messsages",
true,
true);
33 I_ASSIGN(m_useTimeStampAttrPtr,
"UseTimeStamp",
"Use time stamp for the messsages",
true,
false);
34 I_ASSIGN(m_timeFormatAttrPtr,
"TimeFormat",
"Format used for timestamp output",
false,
"dd.MM hh:mm:ss:zzz");
46 int messageCategory = -1,
48 const QByteArray* senderIdPtr =
nullptr)
const override;
75 I_ATTR(
int, m_minPriorityAttrPtr);
76 I_ATTR(
bool, m_isDotEnabledAttrPtr);
77 I_ATTR(
bool, m_useCategoryAttrPtr);
78 I_ATTR(
bool, m_useCodeAttrPtr);
79 I_ATTR(
bool, m_useTimeStampAttrPtr);
80 I_ATTR(QByteArray, m_timeFormatAttrPtr);
82 bool m_isLastDotShown;
Basic implementation for logging using event queue for message transportation.
Basic implementation for a log written to an output stream.
void OnComponentDestroyed() override
void WriteMessageToLog(const MessagePtr &messagePtr) override
ilog::CLogCompBase BaseClass
bool IsMessageSupported(int messageCategory=-1, int messageId=-1, const QByteArray *senderIdPtr=nullptr) const override
Check if some messge is supported.
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 WriteText(const QString &text, istd::IInformationProvider::InformationCategory category)=0
Write a text line to the output stream.
std::shared_ptr< const istd::IInformationProvider > MessagePtr
This namespace contains implementations for the logging functionality.
© Witold Gantzke and Kirill Lepskiy