Adds LogDefMessage call that allows logging of message string to the logger attached to the component.
Sub-components can then use a main component pointer to log debug info etc.
Signed-off-by: Mike Leach mike.leach@linaro.org --- decoder/include/common/trc_component.h | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/decoder/include/common/trc_component.h b/decoder/include/common/trc_component.h index b786e96..6096ac7 100644 --- a/decoder/include/common/trc_component.h +++ b/decoder/include/common/trc_component.h @@ -110,6 +110,14 @@ public: */ TraceComponent *getAssocComponent() { return m_assocComp; };
+ /*! + * Log a message at the default severity on this component. + */ + void LogDefMessage(const std::string &msg) + { + LogMessage(m_errVerbosity, msg); + } + protected: friend class errLogAttachMonitor;