diff --git a/lib/base/logger.cpp b/lib/base/logger.cpp index 8cf7a930974..0777b78cd6f 100644 --- a/lib/base/logger.cpp +++ b/lib/base/logger.cpp @@ -345,8 +345,9 @@ void Logger::UpdateCheckObjectFilterCache() m_ObjectFilterCache.swap(allObjects); } -Log::Log(LogSeverity severity, String facility, const String& message) - : m_Severity(severity), m_Facility(std::move(facility)), m_IsNoOp(severity < Logger::GetMinLogSeverity()) +Log::Log(LogSeverity severity, String facility, const ConfigObject::Ptr& involved, const String& message) + : m_Severity(severity), m_Facility(std::move(facility)), + m_Involved(involved), m_IsNoOp(severity < Logger::GetMinLogSeverity()) { if (!m_IsNoOp && !message.IsEmpty()) { m_Buffer << message; diff --git a/lib/base/logger.hpp b/lib/base/logger.hpp index c38e44477b4..fec06dcb668 100644 --- a/lib/base/logger.hpp +++ b/lib/base/logger.hpp @@ -5,6 +5,7 @@ #include "base/atomic.hpp" #include "base/i2-base.hpp" +#include "base/configobject.hpp" #include "base/logger-ti.hpp" #include #include @@ -122,7 +123,7 @@ class Log Log(const Log& other) = delete; Log& operator=(const Log& rhs) = delete; - Log(LogSeverity severity, String facility, const String& message = String()); + Log(LogSeverity severity, String facility, const ConfigObject::Ptr& involved, const String& message = String()); ~Log(); template @@ -137,6 +138,7 @@ class Log private: LogSeverity m_Severity; String m_Facility; + ConfigObject::Ptr m_Involved; std::ostringstream m_Buffer; bool m_IsNoOp; };