added functions to remove and clear trace logger filters
Signed-off-by: Guthrie Adams <guthadam@amazon.com>
This commit is contained in:
@@ -91,8 +91,28 @@ namespace AzToolsFramework
|
||||
m_windowFilters.insert(filter);
|
||||
}
|
||||
|
||||
void TraceLogger::RemoveWindowFilter(const AZStd::string& filter)
|
||||
{
|
||||
m_windowFilters.erase(filter);
|
||||
}
|
||||
|
||||
void TraceLogger::ClearWindowFilter()
|
||||
{
|
||||
m_windowFilters.clear();
|
||||
}
|
||||
|
||||
void TraceLogger::AddMessageFilter(const AZStd::string& filter)
|
||||
{
|
||||
m_messageFilters.insert(filter);
|
||||
}
|
||||
|
||||
void TraceLogger::RemoveMessageFilter(const AZStd::string& filter)
|
||||
{
|
||||
m_messageFilters.erase(filter);
|
||||
}
|
||||
|
||||
void TraceLogger::ClearMessageFilter()
|
||||
{
|
||||
m_messageFilters.clear();
|
||||
}
|
||||
} // namespace AzToolsFramework
|
||||
|
||||
@@ -25,12 +25,24 @@ namespace AzToolsFramework
|
||||
//! Open log file and dump log sink into it
|
||||
void PrepareLogFile(const AZStd::string& logFileName);
|
||||
|
||||
//! Ignore messages sent to windowd with names matching filter
|
||||
//! Add filter to ignore messages for windows with matching names
|
||||
void AddWindowFilter(const AZStd::string& filter);
|
||||
|
||||
//! Ignore messages with text matching filter
|
||||
//! Remove window filter
|
||||
void RemoveWindowFilter(const AZStd::string& filter);
|
||||
|
||||
//! Clear window filters
|
||||
void ClearWindowFilter();
|
||||
|
||||
//! Add filter to ignore messages with matching names
|
||||
void AddMessageFilter(const AZStd::string& filter);
|
||||
|
||||
//! Remove message filter
|
||||
void RemoveMessageFilter(const AZStd::string& filter);
|
||||
|
||||
//! Clear message filters
|
||||
void ClearMessageFilter();
|
||||
|
||||
protected:
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// AZ::Debug::TraceMessageBus::Handler overrides...
|
||||
|
||||
Reference in New Issue
Block a user